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

[eluser]jedd[/eluser]
Ah, okay - wasn't sure if that was the angle you were more interested in.

With your view/ folder, you can create sub-directories there to separate things more cleanly. So you could have your 'login form' as its own view snippet - a chunk of HTML wrapped in div or table tags, say - and you can call that from any controller.

The view snippet would, in the case of a user/pass login box, have a submit button that direct to your controller/method for authentication - but the view code itself would be portable for any controller that wanted to call it in.


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