Hi Hector, thanks for your reply.
I believed that too. But i tested it and the dispatcher dispatch my request
anyway.
When i look into the code, I saw in the frontController dispatch method, the
dispatch loop is a "do ... while", so we passed into the boucle at least one
time.
At line 936,  there is a "$this->_request->setDispatched(true)" made, so
even if I didn't do this in my plugin before, this is did there.
At line 954, we enter into the dispatch function of dispatcher(I used the
standard dispatcher).

In the standard dispatcher, at line 279, there is another
"$request->setDispatched(true);", and the dispatch of my controller is call
20 line after.

In the dispatch of the controller action, we check is the request is
dispatched, and if it's true, we call the controller's action.

So, I didn't find where the request is not dispatched, or the dispatch
boucle is bypass, if we did "$this->_request->setDispatched(true)"

Is it possible?

And I have another question, why a "do..while" bouckle is made, and not a
"while" ?
-- 
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/How-to-not-enter-in-the-frontController-s-dispatch-loop-properly-tp3095719p3095943.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to