Welcome Guest, Not a member yet? Register   Sign In
Using other controller to display a view
#5

[eluser]sw[/eluser]
That is what I have at the moment.
Main controller decides whether to display the login form or the logout button which then call the auth controller when pushed.

The issue remains tho, if I want to display the login form in other pages, I'll have to rewrite the logic behind what form it displays (whether it is logged in or not).
This is why I wanted to move the logic to auth controller and somehow be able to call it from other controllers to display the login view.

Another option is to move the logic into the login view but that goes against MVC pattern, I guess.


I'm sorry for not being able to detail the problem accurately.


Messages In This Thread
Using other controller to display a view - by El Forum - 04-02-2009, 06:31 PM
Using other controller to display a view - by El Forum - 04-02-2009, 06:53 PM
Using other controller to display a view - by El Forum - 04-02-2009, 07:17 PM
Using other controller to display a view - by El Forum - 04-02-2009, 07:37 PM
Using other controller to display a view - by El Forum - 04-02-2009, 09:29 PM
Using other controller to display a view - by El Forum - 04-03-2009, 04:35 AM
Using other controller to display a view - by El Forum - 04-03-2009, 12:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB