Does all controller should have index()? |
[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?
[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 |
Welcome Guest, Not a member yet? Register Sign In |