This is mine and works great for me ............. i hope it help
protected function _initLayoutView() {
$this -> bootstrap ('layout');
$layout = $this -> getResource ('layout');
$view = $layout -> getView();
$view->addHelperPath('dagho/View/Helper', 'dagho_View_Helper');
$view -> doctype('XHTML1_STRICT');
$view->headMeta()->appendHttpEquiv('Content-Type',
'text/html; charset=utf-8')
->appendHttpEquiv('Content-Language', 'en-US');;
$view->headLink(array('rel' => 'favicon',
'href' => $view->baseUrl().'/img/favicon.ico'),
'PREPEND');
$view -> headLink() -> prependStylesheet($view->baseUrl('/css/demo.css'))
->prependStylesheet($view->baseUrl('/css/text.css'))
->prependStylesheet($view->baseUrl('/css/960.css'))
->prependStylesheet($view->baseUrl('/css/reset.css'));
$view->headScript()->appendFile($view->baseUrl('js/jquery-1.4.2.min.js') , "text/javascript")
->appendFile($view->baseUrl('js/jquery-ui.min.js') , "text/javascript")
->appendFile($view->baseUrl('js/swfobject/swfobject.js') , "text/javascript");
$view -> headTitle('title ');
$view -> headTitle() -> setSeparator( ' : ' );
$trackerId = 'UA-xxxxxxxx-4';
$googleAnalytics = $view->GoogleAnalytics($trackerId);
return $view ;
}
and in the view for example i do something like : <?php echo $this->GoogleAnalytics(); ?>
any way can you add the last semicolon in the to <?php echo $this->theme ?>
be like <?php echo $this->theme; ?>
i know sounds crazy but i prefer to stick with rules