View Single Post
  #1 (permalink)  
Old 04-04-2008, 04:04 PM
intregus intregus is offline
Junior Member
 
Join Date: Feb 2008
Posts: 17
Unhappy Trouble Getting Module Routing

I'm working on getting a very basic module structure going to move all development, and admin controllers out of the default directory, but nothing seems to work as expected.

setControllerDirectory:
Code:
$front->setControllerDirectory(
    array(
        'default'	=> '../application/controllers',
    	'dev'		=> '../application/modules/dev/controllers', //Comment out this line for live
        'admin'		=> '../application/modules/admin/controllers'
    )
);

Error:
Code:
PHP Fatal error:  Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller class ("Admin_IndexController")' in /Applications/MAMP/htdocs/yvm_alpha/library/Zend/Controller/Dispatcher/Standard.php:353
I'm not trying to do anything fancy here, so all I need is somebody to post an example of a working module set-up. Thanks.
Reply With Quote