Instead of overriding the FrontController itself, you could override
the Front Controller bootstrap resource
(Zend_Application_Resource_Frontcontroller) - it should be possible to
specify the dir location for your overriding resources. Then in that
custom front controller resource class, it could be possible to
override the init() method to manipulate the controllerdirectory array
prior to calling the parent init() method, eg:

My_Resource_Frontcontroller
  extends Zend_Application_Resource_Frontcontroller
{

public function init()
{

   //bootstrap dependencies used to figure out which modules to load
  //e.g
  $db = $this->getBootstrap()->bootstrap('db');

  //controller dirs
 $controllerdirectory = array(
   'default' => '/modules/default/controllers'
 );

  $this->setOption('controllerdirectory', $controllerdirectory);

  parent::init(); //sets desired controller dirs in the front controller

}

}

-- 
Greg

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to