After enabling the layout with:
zf enable layout
If you are getting this Error, most likely you are using the following code in Bootstrap.php:
$this->bootstrap('layout');
Uncaught exception 'Zend_Application_Bootstrap_Exception' with message 'Resource matching "layout" not found' in
It cannot find the resource so it is throwing a fatal error
Solution:
in you application.ini
:
add the following lines:
resources.layout.layout = "layout"
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts"
This effectively registers the layout resource