How get an Zend Framework autoloader with include_path that have the path of the name to load? -


i want uses zend autoloader instead of require_one load forms class or whatever need load in actions.

i know can create directory named myapp inside library directory , put form folder there forms, or add directory separate form of different modules, etc. rather prefer keep forms class files in same directory of module controller, mean, keep forms files inside forms directory inside each module controller directory without have add each module name add autoloader path.

in resume, zend autoloader search first in same dir name trying solve reside, instead of search in library directory first.

after testing , more doc reading:

the closer approach 1 can zf regard requirements have de following dir tree inside controller dir: 'myapp/form/someform.php' , refer form inside controller 'myapp_form_someform'. mean, 1 can't avoid redundancy of 'myapp_' form used in controller. idea behind not have type whole name space of locals declarations never used outside controller, kind of module private declaration, still must acceded whole app namespace cos loader inefficient.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -