public function initialize(sfEventDispatcher $dispatcher, sfFormatter $formatter) { parent::initialize($dispatcher, $formatter); // This is just a hack to make OpenPNE generate a valid url in some helper function $_SERVER['SCRIPT_NAME'] = '/index.php'; }