ZF-8025: Allow an array of paths to be specified for each resource type in a resource autoloader
If your project is structured as follows (at least part of it):\
/application /modules /blog /models /generated BaseUser.php (Blog_Model_BaseUser) User.php (Blog_Model_User)
... it's not possible to use a resource or module autoloader to load the base models in the /generated folder, because a resource type can only be associated with a single path.
It would work if you could specify multiple paths like this:
'model' => array( 'paths' => array('models/', 'models/generated/'), 'namespace' => 'Blog_Model' )
Or, you could enable searching in subdirectries:
'model' => array( 'path' => 'models/', 'includeSubdirectories' => true, 'namespace' => 'Blog_Model' )
This would also be useful if, for example, you had your view helpers in subdirectories for organization purposes:
Again, same "namespace", different directories.