-- iceangel89 <[email protected]> wrote
(on Friday, 01 May 2009, 06:17 AM -0700):
> hmm then say i want to convert
>
> $resourceLoader = new Zend_Loader_Autoloader_Resource(array(
> 'basePath' => APPLICATION_PATH . '/modules/lab',
> 'namespace' => 'Lab',
> ));
> $resourceLoader->addResourceType('form', 'forms/', 'Form')
> ->addResourceType('model', 'models/', 'Model');
>
> to put into application.ini?
Even easier -- drop a Bootstrap.php into modules/lab/ with the class
Lab_Bootstrap, and have that class extend
Zend_Application_Module_Bootstrap, and it will do it for you. :)
application/
modules/
lab/
Bootstrap.php
class Lab_Bootstrap extends Zend_Application_Module_Autoloader
{
}
--
Matthew Weier O'Phinney
Project Lead | [email protected]
Zend Framework | http://framework.zend.com/