RE: what is routing in Codeigniter?

what is routing in Codeigniter?

dip Team Leader Asked on June 7, 2018 in CODEIGNITER.
Add Comment
1 Answers

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

avianceschool.com/pages/contactus
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'];

Senior Developer Answered on November 12, 2018.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.