Welcome Guest, Not a member yet? Register   Sign In
What do you guys do with pages that don't require a controller?
#3

[eluser]John_Betong[/eluser]
[quote author="mason22" date="1260948599"]What do you guys do with pages that don't require a controller? Do you just put it outside of the CI folders? Is that the right way of doing things? I always thought you needed to keep all of your files in the view folder... but this forces me to make a controller for pages that don't really need one. Do you guys just go ahead and make a controller so you can keep all of your files in one place?[/quote]
 
What pages do you have that do not need a controller? What do you think is to be gained by circumventing a controller? I think this will create future problems by not using a controller because even though now your data may be static I am sure that this will change as your site progresses.

The MVC structure of the controller is that every page has to go through the controller before it is directed to a particular view.

The Welcome page is a good example that can be built upon to test your own pages. Once the MVC structure is in place it is very easy to add and many additional pages with or without having to pass data to pages "that do not need a controller". It is also easy to simply add tried and tested class plugins, models and libraries such as email, images, database, sessions, FTP, etc
 
 
edit: keyboard trouble
 


Messages In This Thread
What do you guys do with pages that don't require a controller? - by El Forum - 12-16-2009, 12:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB