Hi,

Each of my Controllers extend my own parent controller 
MyZend_Default_Controller_Action which extends 
MyZend_Common_Controller_Action which finally extends 
Zend_Controller_Action.

I have seen recently that actually, the request is going two times in the
parent controllers for some reason; here is the log and the code below:

2009-04-15T13:05:38+02:00 DEBUG (7): MyZend_Common_Controller_Action
2009-04-15T13:05:38+02:00 DEBUG (7): MyZend_Default_Controller_Action
2009-04-15T13:05:39+02:00 DEBUG (7): IndexController
2009-04-15T13:05:45+02:00 DEBUG (7): MyZend_Common_Controller_Action
2009-04-15T13:05:45+02:00 DEBUG (7): MyZend_Default_Controller_Action

<?php
abstract class MyZend_Common_Controller_Action extends
Zend_Controller_Action {
    public function preDispatch() {
        [...]
        $this->logger->debug('MyZend_Common_Controller_Action');
        [...]


<?php
abstract class MyZend_Default_Controller_Action extends
MyZend_Common_Controller_Action {
    public function preDispatch() {
        parent::preDispatch();
        $this->logger->debug('MyZend_Default_Controller_Action');
        [...]


<?php
class IndexController extends MyZend_Default_Controller_Action {        
        function preDispatch () {
                parent::preDispatch();
                if (!$this->getRequest()->isDispatched()) return;
                $this->logger->debug('IndexController');
        }
        function indexAction() {
                [...]


Thank you for any help !!

-- 
View this message in context: 
http://www.nabble.com/Zend_Controller_Action-called-two-times-tp23057466p23057466.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to