On 08/27/2009 01:59 PM, Sergio Rinaudo wrote:
Hi,
in my application I use an ErrorController like the one explained here
http://framework.zend.com/manual/en/zend.controller.plugins.html#zend.controller.plugins.standard.errorhandler
and I have a Layout composed by different parts ( header, footer ecc.. )
loaded by the render() method.
I noticed that if the url calls an existing controller and a non
existing action, I get my layout with all is parts and the
ErrorController:error.
Instead, if the controller is non existing ( whatever action ), all the
parts in my layout are missing ( except ErrorController:error ), like
$this->getResponse()->clearBody(); is automatically called.
It is a problem only for my application ( maybe I have some code that
cause this... ) or is a normal behaviour?
In the ErrorController, do you specify a layout?
$this->view->layout()->setLayout("default_layout");
I think you have to do this for each action in that controller or in an
init() method if you want the same layout for all error types.
--
Drew Bertola
-------------------------------------------------------
* PHP/LAMP Consultant, ZCE-1000 *
* *
* Tel: 408-966-6671 *
* *
* current resume: *
* http://drewb.com/media/drew_bertola_resume.pdf *
-------------------------------------------------------