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


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-03-2007, 05:27 PM
sso sso is offline
Junior Member
 
Join Date: Dec 2007
Posts: 1
Default directory layout with admin controllers and views

I have the following directory layout:

Code:
library/
application/
  module/ - e.g news
    /controllers - controllers for front end
    /models
    /views - views for front end
    /administration/
      /controllers - controllers for administration
      /views - views for administration
How do I configure the router or what ever to get the system look for admin-controllers in the administration/controllers folder when the URL example.com/administration/module/controller/action is entered?

E.g the example.com/administration/news URL should invoke the IndexController in the application/news/administration/controllers/ folder.

Default module routing functionality should just apply to the example.com/administration URL, but should look for controllers and views in the administration folder for each module.


Thanks in advance
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 11:38 PM.