Hi Marcin,

If you need different controller naming than the recommended convention you'll 
need to create a subclass of Zend_Controller_Dispatcher_Standard. This contains 
methods like getControllerClass, getDefaultControllerClass and 
classToFilename() which all determine how controller classes are named and how 
the classname translates to a path to the file.

With the subclass, you can do something like this from the bootstrap file:

$front = Zend_Controller_Front::getInstance();
$dispatcher = new Custom_Controller_Dispatcher_Standard;
$front->setDispatcher($dispatcher);

Regards,

Pádraic
 
Pádraic Brady
http://blog.astrumfutura.com
http://www.patternsforphp.com


----- Original Message ----
From: Marcin Stefaniak <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thursday, June 14, 2007 3:18:29 PM
Subject: [fw-general] modular structure and controllers in one directory

I'd like to store my all controllers in one directory i.e. 
/app/controllers. I have two modules "one", "two" and default of course. 
I'd like to create structure like this:

/app
  /controllers
    IndexController.php
    FooController.php
    One_IndexController.php
    One_FooController.php
    Two_IndexController.php
    Two_Foocontroller.php

Is there a solution to get this?

-- 
Marcin Stefaniak








      
____________________________________________________________________________________
Shape Yahoo! in your own image.  Join our Network Research Panel today!   
http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 

Reply via email to