You can also set the layout in the 404 script. This could be a save layout
with no calls to the url-viewhelper or other helpers that rely on
RouteMatch.

First line of your 404-script:
<?php $this->layout()->setTemplate('layout/error'); ?>




--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/ZF2-Disable-layout-for-404-error-page-tp4657694p4657765.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to