What class(FrontController , Bootstrap, Dispacher….) sets up the default structure path in ZF?
What class(FrontController , Bootstrap, Dispacher….) sets up the default structure path in ZF?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no single instance that has all the paths. Each component has it’s own defaults, e.g. the FrontController knows that the controller directory should be named controllers, but it doesn’t know how to make a full path from it (Dispatcher does it) or where to find the Action Helpers. That’s defined in ActionHelper Broker. Consequently, Zend_View_Abstract holds the paths for View filters, helpers and scripts, etc.
Like @Pascal mentioned in his comment, you should not modify ZF at it’s core. You will lose the changes once you update to a newer version anyway. Configure the paths through the API in your bootstrap or through the application.ini instead.