- pw
On Mon, Jul 27, 2009 at 12:03 PM, Edwin Cruz <softr8@gmail.com> wrote:
Hi All!
I do have this structure:
/application
models/
modules/
default/
reports/
admin/
views/
helpers/
layouts/
scripts/
default/
reports/
admin/
lib/
Zend/
/public
My site is working perfectly, with modules, views, helpers, etc... but, I cannot find the way to tell the frontController that my models are under application/models, I have to include them manually on every controller, some code inside my Bootstrap class:
.
.
.
$self::$frontController->setModuleControllerDirectoryName('');
$self::$frontController->addModuleDirectory(self::$root . '/modules');
.
.
.
Zend_Layout::startMvc(
array(
'layoutPath' => self::$root . '/views/layouts',
'layout' => 'default',
)
);
and some ini parameters:
includePaths.library = APPLICATION_PATH "/lib" APPLICATION_PATH "/models"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
But my controllers cannot find any Model and I have to include them manually, could somebody tell me how to do it automatically?? I was able to do it but without modules.
Thanks in advance and best regards!
--
Ing. Edwin Cruz
没有评论:
发表评论