On Thursday 17 Dec 2009 16:58:48 Derk wrote:
> That is one of the things I tried, but it doesn't work :(.
> 
> $moduleLoader = new Zend_Application_Module_Autoloader(
>                       array(
>                               'namespace' => 'Default_',
>                               'basePath' => APPLICATION_PATH
>                       )
>               );
> 
> and the warning
> Warning:
> Zend_Loader_Autoloader_Resource::include(...\application/models//Article.ph
> p) [function.Zend-Loader-Autoloader-Resource-include]: failed to open
>  stream: No such file or directory in
> ....\library\Zend\Loader\Autoloader\Resource.php on line 176
>  

Hi Derk,

To help you, I post some configuration options from my application. This is a 
part from my application.ini:

>resources.frontController.defaultControllerName = "index"
>resources.frontController.defaultAction = "index"
>resources.frontController.defaultModule = "default"
>resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
>resources.frontController.moduleControllerDirectoryName = "controllers"

And this is a part from my bootstrap:
>$path = $this->bootstrap('frontController')
>                     ->getResource('frontController')
>                     ->getModuleDirectory();
>$autoloader = new Zend_Application_Module_Autoloader(array(
>    'namespace' => 'Default_',
>    'basePath'  => $path,
>));


This causes to trigger the following behaviour:
 * All modules are in application/modules (also the default one)
 * The default module is in application/modules/default
 * The bootstrap class (application/modules/default/Bootstrap.php) is a 
Default_Bootstrap
 * The default controllers are at application/modules/default/controllers
 * They are just called IndexController, ErrorController etc (without prefix)
 * Default models, forms, etc are prefixed with Default_ so you have e.g. a 
Default_Model_User inside application/modules/default/models/User.php

Regards, Jurian

-- 
Jurian Sluiman
CTO Soflomo V.O.F.
http://soflomo.com

Reply via email to