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

[eluser]John_Betong[/eluser]
[quote author="NuclearArt" date="1224108323"]It might sound like a dumb question, but do I have to create a new controller and a view for that controller for every page of a site that I might build? I want to follow one template, and one controller for different views. Does it make sense? Can anyone help?[/quote]
 
 
I have experimented with numerous techniques of Controller and View files. What I now prefer is simplicity (KISS) so that it is easy for me to read the code, debug and modify. Take a look at this post:
 
[email=http://ellislab.com/forums/viewthread/90724/]http://ellislab.com/forums/viewthread/90724/[/email]
 
Maybe not the best way for others but it works for me.
 
 
 


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