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


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-23-2008, 10:08 AM
Member
 
Join Date: Feb 2008
Posts: 48
Question Multiple Controllers Pointing thru Index ?

Hi ,

I have to keep the admin files in an admin folder. So, in this case i hv to change my controller files to this new directory. For that i hv added the controller, like below. But i dont know how to access the admin folder.

$front->setControllerDirectory(array(
'default' => '../application/default/controllers',
'admin' => '../application/admin/controllers'
));

I tried http://localhost/html/index.php/admi...r)/list(action).

But it is not coming . Can anyone tell me how to point this.

- Mugesh.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 04:03 AM
Senior Member
 
Join Date: Jan 2008
Location: chicago
Posts: 101
Default

First, an important question:
Is the admin part of your site going to be built with the Zend Framework? If the answer is no, you simply have to turn off bootstrapping when in the '/admin' directory.

I am guessing though that the answer is 'yes', in which case you should look into setting up your Zend Framework application in the Conventional Modular directory structure. this way you can have a 'default' module and an 'admin' module

Using a Conventional Modular Directory Structure
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 12:40 PM.