Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-04-2008, 04:04 PM
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-04-2008, 09:14 PM
Junior Member
 
Join Date: Mar 2008
Posts: 7
Default

O that about this type:

Code:
$front->addControllerDirectory('./application/admin/controllers', 'admin');
And what name is your's Admin controlles class? I think it have be Admin_IndexController ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 01:55 PM.