CodeIgniter Forums
About Index page - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: About Index page (/showthread.php?tid=22089)



About Index page - El Forum - 08-29-2009

[eluser]ajay009ajay[/eluser]
When site run, the index page open first.I studied codeigniter and i found site is controlling by URL (relation with class and function).This is easy to understand when URL is redirecting class and function.

like....

www.mydomain.com/class/function

This is calling class and inside that function the output page will be loaded.
But what is the concept behind first index page running.

www.mydomain.com

How the output page is loading on browser. Plz explain it..

Thanks


About Index page - El Forum - 08-29-2009

[eluser]pistolPete[/eluser]
Have a look at the user guide: http://ellislab.com/codeigniter/user-guide/general/routing.html
Quote:Reserved Routes

Code:
$route['default_controller'] = 'welcome';
This route indicates which controller class should be loaded if the URI contains no data, which will be the case when people load your root URL. In the above example, the "welcome" class would be loaded. You are encouraged to always have a default route otherwise a 404 page will appear by default.