View scripts are not handled by the autoloader. Take a look at your view's script paths, which is a LIFO stack:
var_dump($view->getScriptPaths()); Since there is no prefixing for view scripts, the view object has to search each of the directories (starting with the last one) for the matching view script. Therefore it's a good idea to keep the number of paths down to a minimum if possible. -- *Hector Virgen* Sr. Web Developer Walt Disney Parks and Resorts Online http://www.virgentech.com On Thu, Sep 30, 2010 at 11:06 AM, debussy007 <debussy...@gmail.com> wrote: > > Hi, > > I profiled my application, and noticed with the help of xdebug and webgrind > that my includes are very slow. > Like for example ~450 ms was needed for an include of a .phtml file ! > > I wonder if I am doing something wrong with include paths, if I'm not > wrong, > ZF uses it to find the files. > > This is my confiuration : > > [...] > set_include_path(realpath(dirname(__FILE__) . '/../library')); > require_once 'Zend/Loader/Autoloader.php'; > $autoloader = Zend_Loader_Autoloader::getInstance(); > $autoloader->registerNamespace(array('My_', 'MyZend_')); > $resourceLoader = new Zend_Application_Module_Autoloader(array( > 'namespace' => 'My', > 'basePath' => './application/' > )); > $resourceLoader > ->addResourceType('constants', 'constants/', 'Constant') > ->addResourceType('exceptions', 'exceptions/', 'Exception') > ->addResourceType('plugins', 'helpers/Plugin/', 'Plugin') > ->addResourceType('helpers', 'helpers/Common/', 'Helper') > ->addResourceType('viewHelpers', 'helpers/ViewHelper/', > 'View_Helper') > ->addResourceType('actionHelpers', 'helpers/ActionHelper/', > 'Action_Helper'); > [...] > > > Can anyone help me out with this ? > > Thank you very much !! > -- > View this message in context: > http://zend-framework-community.634137.n4.nabble.com/includes-are-slow-wrong-set-include-path-tp2736921p2736921.html > Sent from the Zend Framework mailing list archive at Nabble.com. >