This is very good for integrating the header of a web site powered with Symfony in a WordPress blog. That is just an example
require_once(dirname(__FILE__).’/../config/ProjectConfigurat ion.class.php’);
$configuration = ProjectConfiguration::getApplicationConfiguration(‘frontend’ , ‘dev’, true);
sfContext::createInstance($configuration);
// Remove the following lines if you don’t use the database layer
$databaseManager = new sfDatabaseManager($configuration);
$databaseManager->loadConfiguration();
sfContext::getInstance()->getConfiguration()->loadHelpers(‘Partial’);
echo get_partial(“global/header”);
