|
|||
|
In the ErrorController there is an occasion where I want to bring the user back to the index page. I need to execute the index controller to that page and not try to render it's view within the ErrorController because none of the model data is present then, since it's in the indexcontroller. I want to also set a variable in that view, so if I use the redirect helper, I don't think I am able to affect the view that is subsequently rendered, right? So how can I call the index controller and set a view variable for it from another controller?
|
|
|||
|
Guys, I have similar problem
From a controller I need to prepare an e-mail body and send e-mail. I have a standard template for e-mails but text can differ that's why I want to use layouts for it. renderScript - doesn't work here because the output content is appened to response I tried to create new controller for rendering of my e-mail, however the problem is that its constructor requires Request and Response. If I pass them from current controller and then change script paths for new controller, it influents script paths of current controller also. Would you please recommend me some working solution. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|