after starting with zend framework for sometime, i started to think which classes shld be put where, in the /library
or /application
?
i think that reusable classes shld go to /library
and application specific to /application
? am i correct?
1 thing that i find more troublesome when using /application
is that its not in the include path and i need to create a resource loader for it? eg.
$resourceLoader = new Zend_Loader_Autoloader_Resource(array(
'namespace' => 'Application_',
'basePath' => dirname(__FILE__)
));
$resourceLoader->addResourceType('validator', 'validators/', 'Validator');
$resourceLoader->addResourceType('acl', 'acl/', 'Acl');