Hi,
I’ve create a module called blog using the Zend Cli Tool.
I’ve managed to get the controllers to work, however, I can’t seem to get the models from within the module to load.
The Zend Tool created a directory structure as shown below (some of it is omitted)
/application
/modules
[INDENT]/blog[/INDENT]
[INDENT][INDENT]/controllers[/INDENT][/INDENT]
[INDENT][INDENT]/models[/INDENT][/INDENT]
I have the following in my bootstrap.php file to initialise the modules;
//...
public function _initModules()
{
$front = Zend_Controller_Front::getInstance();
$front->addModuleDirectory(APPLICATION_PATH.'/modules');
$front->setControllerDirectory( array (
'blog' => APPLICATION_PATH . '/application/controllers/blog'
) );
}
//...
Can you offer any links to practical examples?
Cheers,
Michael