Welcome Guest, Not a member yet? Register   Sign In
General question regarding MY_Controller
#6

[eluser]überfuzz[/eluser]
[quote author="BrianDHall" date="1258060175"]I like using my_controller for login stuff, but what I'd recommend if you wanted to do it is use more functions.

So if 'login', execute $this->_login(), etc. Slims the constructor and makes it more logical, and allows $this->_logout() to be called directly from other scripts if desired (and I've occasionally run into wanting to do that).[/quote]Quite right, but Flemming has got a point. You could do the logout with a normal controller, just as easy as if it's situated in the my-controller. Only difference would be the url, but then again you could redirect from the logout method. Have the logout form pointing at the logout url.


Messages In This Thread
General question regarding MY_Controller - by El Forum - 11-12-2009, 02:20 AM
General question regarding MY_Controller - by El Forum - 11-12-2009, 04:37 AM
General question regarding MY_Controller - by El Forum - 11-12-2009, 04:45 AM
General question regarding MY_Controller - by El Forum - 11-12-2009, 07:22 AM
General question regarding MY_Controller - by El Forum - 11-12-2009, 09:09 AM
General question regarding MY_Controller - by El Forum - 11-12-2009, 01:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB