Search code examples
zend-frameworkzend-studio

Uncaught exception 'Zend_View_Exception'


For my project I have added following line of code in applicaiton.ini

resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"

Whenever I add this code, am getting following error,

**Fatal error: Uncaught exception 'Zend_View_Exception' with message 'script 'layout.phtml' not found in path

Bellow is the structure of my project

** enter image description here


Solution

  • The Folder for the layout must be located in "application".

    /application/layouts/scripts/layout.phtml