I'm now converting my site to use layouts, and I noticed (thanks to the error message) that Zend_Layout isn't using the suffix I set in the View Renderer when initializing the view ('html' instead of 'phtml').

Within the application bootstrap, I initialize the view like so:

        protected function _initView()
        {
                $this->bootstrap('FrontController');
                $front = $this->getResource('FrontController');
                
                $view = new Zend_View();
                $view->addHelperPath('../library/Fs/View/Helper', 
'Fs_View_Helper');
                
                $viewRenderer = new 
Zend_Controller_Action_Helper_ViewRenderer($view);
                $viewRenderer->setViewSuffix('html');
                Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
                
                return $view;
        }

So how do I get Layout to use the same suffix?

--
スティーブン

Reply via email to