Hi,
In your AuthController do:
$this->_forward(action, controller, module, array('myVariable' => 'value'));
And then in the ErrorController do:
$myVariable = $this->getRequest()->getParam('myVariable');
debussy007 wrote:
Hello, another question ... If anyone of you has some time to advice me ....
I wondered how to pass info between two controllers.
Here is the case explained where I need it :
I have an AuthController which is responsible for all login/logout actions.
When I notice someone put a bad username and/or password,
the AuthController forwards the flow to the IndexController which will
render the home page
and I want to display a message to explain it is a bad user and/or password
on this home page.
So the question is how do I specify that there was a bad connection attempt
between the AuthController and the IndexController ?
In other words how do I transfer the information between the AuthController
and the IndexController
that the connection failed ? What is the best way ?
Thank you for any advice & help !!
--
Jack