Welcome Guest, Not a member yet? Register   Sign In
Similar functionality independent of the controller
#4

[eluser]bunal[/eluser]
Thanks for the replies.

I'll go having the stuff in the constructor of the controller or MY_Controller

@n0xie: Sometimes it is needed be on the same page for example for error showing. Lets say you are on "index page" there is a sidebar and in the sidebar there is newsletter subs. form. When you post to newsletter controller, you need to redirect user back to "index page" with some Get params in the url stating the error and use these params to show/parse errors on the page. But if you post to same page since there is no redirection i can have the errors in a variable and view can directly use these variables to show errors. Hope i could explain it.


Messages In This Thread
Similar functionality independent of the controller - by El Forum - 11-12-2009, 07:14 AM
Similar functionality independent of the controller - by El Forum - 11-12-2009, 08:30 AM
Similar functionality independent of the controller - by El Forum - 11-12-2009, 08:58 AM
Similar functionality independent of the controller - by El Forum - 11-13-2009, 02:37 AM
Similar functionality independent of the controller - by El Forum - 11-13-2009, 03:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB