Welcome Guest, Not a member yet? Register   Sign In
Controllers and Views
#2

[eluser]Jay Turley[/eluser]
If I understand your meaning, then no, you don't.

One controller can load many views. Each function you define in a controller corresponds to a URL. And each function can load different views.

So for instance the function login() in a User() controller might load a login_form.php view, while the User/signup() function might load create_account_form.php.

Just for example.


Messages In This Thread
Controllers and Views - by El Forum - 10-15-2008, 11:05 AM
Controllers and Views - by El Forum - 10-15-2008, 11:27 AM
Controllers and Views - by El Forum - 10-15-2008, 12:42 PM
Controllers and Views - by El Forum - 10-15-2008, 01:02 PM
Controllers and Views - by El Forum - 10-15-2008, 02:46 PM
Controllers and Views - by El Forum - 10-15-2008, 05:14 PM
Controllers and Views - by El Forum - 10-15-2008, 06:32 PM
Controllers and Views - by El Forum - 10-15-2008, 07:57 PM



Theme © iAndrew 2016 - Forum software by © MyBB