RE: what is routing in Codeigniter?
In Codeigniter code will run without routes.php
routes.php is used to customise the url of the website. like if you have url like
Here “pages” is a controller and “contactus” is method in that controller.If you want to show url without controller like avianceschool.com/contactus, then you need to write down the code as below.
$route['contactus'] = ['pages/contactus'];