I'm trying to use modules in the ZF 1.8 project but can't get working routing to modules' actions.
Here is an example, I create route "/test" that points to module 'test', controller 'ttt' and action 'index':
$router->addRoute(
$name,
new Zend_Controller_Router_Route('test',
array('controller' => 'ttt',
'module' => 'test',
'action' => 'index'))
);
I initilaize modules directory (create diretory "ttt", required controller and view classes) and specify it during bootstrap:
$front->addModuleDirectory(dirname(__FILE__) . '/modules');
But when I open URL like example.com/test I'm getting error like "Message: Invalid controller specified (ttt)".
What's wrong with my example?
Fixed. Added the following line into the application.ini:
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"