-- iceangel89 <[email protected]> wrote
(on Friday, 01 May 2009, 07:05 AM -0700):
> Matthew Weier O'Phinney-3 wrote:
> >
> > 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
> > {
> > }
> >
>
> will it? i tried that and it says
>
> Class 'Lab_Model_Department' not found in ...
At this point, I have no concrete idea of what your setup is.
The following *should* work:
* Directory structure:
application/
Bootstrap.php
configs/
application.ini
controllers/
forms/
models/
modules/
lab/
Bootstrap.php
configs/
controllers/
forms/
models/
views/
views/
* Configuration:
resources.frontController.controllerDirectory = APPLICATION_PATH
"/controllers"
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.modules[] =
* application/modules/lab/Bootstrap.php:
class Lab_Bootstrap extends Zend_Application_Module_Bootstrap
{
}
Let me know if it does not.
--
Matthew Weier O'Phinney
Project Lead | [email protected]
Zend Framework | http://framework.zend.com/