Welcome Guest, Not a member yet? Register   Sign In
Does all controller should have index()?
#1

[eluser]liesbetweenyoureyes[/eluser]
I was wondering if it is a good practice to have all controllers have function index() in each or is it ok not to?
#2

[eluser]Otemu[/eluser]
I normally have an index in all my controllers, however this isn't a requirement if your not concerned with the first segment of the URL.
Quote:The "index" function is always loaded by default if the second segment of the URI is empty.
check out the guide for more info on controllers




Theme © iAndrew 2016 - Forum software by © MyBB