/** * sfSmartyView::initialize() * This method is used instead of sfPHPView::initialze * * @param mixed $context * @param mixed $moduleName * @param mixed $actionName * @param mixed $viewName * @return **/ public function initialize($context, $moduleName, $actionName, $viewName) { $this->setExtension(sfConfig::get('app_sfSmarty_template_extension', '.tpl')); parent::initialize($context, $moduleName, $actionName, $viewName); self::$smarty = sfSmarty::getInstance(); if (sfConfig::get('sf_logging_enabled')) { $this->dispatcher->notify(new sfEvent($this, 'application.log', array('{sfSmartyView} is used for rendering'))); } return true; }