Código PHP:
Ver original
bootstrap.php class Bootstrap extends Zend_Application_Bootstrap_Bootstrap { protected function _initAutoload() { 'namespace' => '', 'basePath' => APPLICATION_PATH)); return $moduleLoader; } function _initViewHelpers() { $this->bootstrap('layout'); $layout = $this->getResource('layout'); $view = $layout->getView(); $view->doctype('XHTML1_STRICT'); $view->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8'); $view->headTitle()->setSeparator(' - '); $view->headTitle(''); $view->headLink()->appendStylesheet('../application/css/estilos.css'); } }
y este el del controlado Principal
Código PHP:
Ver original
PrincipalController.php <?php class principalController extends Zend_Controller_Action { public function init() { $this->view->headTitle('Principal'); $this->view->headTitle()->setSeparator(' / '); } public function indexAction() { } }