Welcome Guest, Not a member yet? Register   Sign In
About Index page
#1

[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
#2

[eluser]pistolPete[/eluser]
Have a look at the user guide: http://ellislab.com/codeigniter/user-gui...uting.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.




Theme © iAndrew 2016 - Forum software by © MyBB