Can you explain these two lines of code in
applications/config/routes.php file in the CodeIgniter framework?
$route['default_controller'] = 'pages/view'; $route['(:any)'] = 'pages/view/$1';
The following information is taken from the CodeIgniter-Documentation under http://codeigniter.com/user_guide/general/routing.html.
So your first line of code would redirect any call to your domain, when the URI contains no data to the view-Method in the pages-class like that:
The second line would redirect any call to the pages-class/view-method and pass the original URI as parameter like that:
So, basically you're setting up a Front Controller with these two lines. Hope that helps.
In CodeIgniter, each URL can be splitted into class, method and data as stated here.
I would like to encourage you to read through the excellent CI-Documentation to fully understand those principles.