(on Thursday, 06 November 2008, 09:19 AM -0800):
> I was wondering if it would be possible to make the name of the default
> controller be the same as the module's name.
>
> For instance:
> /application/thismodule/controllers/ThisModuleController.php would be the
> default controller for the module "thismodule."
>
> I have tried using setDefaultControllerName() but I can't seem to get the
> module name using the Request object before the route is seemingly finished.
>
> Any ideas?
Do it in a routeShutdown() plugin -- at that point routing is finished,
and you'll know what the module is.
--
Matthew Weier O'Phinney
Software Architect | matthew@zend.com
Zend Framework | http://framework.zend.com/
没有评论:
发表评论