On 2/25/07, Jakub Podhorský <[EMAIL PROTECTED]> wrote:

 Hello,

Is there any way in Zend Framework how to determinate default controller
and action for each module?


Default controller is by default a controller called
<Module>_IndexController. So why to not put the logic of ArticleController
in it?
Anyway, if you like to run ArticleController when user types
http://yoursite/, then add route like:
Zend_Controller_Front::getInstance()->getRouter()->addRoute('/', new
Zend_Controller_Router_Route('', array('action' => 'index', 'controller' =>
'article', 'module' => '')));

--
Alexander
http://www.alexatnet.com/

Reply via email to