-- velanzia <[EMAIL PROTECTED]> wrote
(on Tuesday, 28 August 2007, 10:00 AM -0700):
> I've got a question with using modules with ZF. I got a website which
> basically has three sections "pro" and "public". So I thought have three
> different modules like "default", "pro" and "public".
>
> Bootstrap sets the controller directories like this:
>
> 'default' => 'application/default/controllers',
> 'pro' => 'application/pro/controllers',
> 'public' => 'application/public/controllers'
>
> And the similar paths to models were added to the include path using the
> same bootstrap.
>
> However when I try to do this,
>
> indexAction() {
> Zend_Loader::loadeClass('Index');
> }
>
> in my "/application/default/controller/IndexController.php", expecting to
> load my "Index" model class from this file
> "/application/default/models/Index.php" I get an error similar to this:
>
> File 'Index.php' loaded but the class 'Index" was not found.
We don't currently add the 'models' directory from a module to the
include_path, so this will not work unless you have done so yourself in
your bootstrap or elsewhere.
--
Matthew Weier O'Phinney
PHP Developer | [EMAIL PROTECTED]
Zend - The PHP Company | http://www.zend.com/