CodeIgniter Routing problems
I'm not familiar with CodeIgniter. This is especially the way to route this piece. Now change to a system. Write the controller after the access always appears "Route_error" error;
For example, I wrote a login.php controller placed in the Controllers/admin directory, I directly access Www.abc.com/admin/login will appear "Route_error." Error.
If I add a line to route.php:
$route [' admin ']= "admin/login";
That's all you can do. But too much trouble, I can not write a controller to modify the route.php it?!
Here is my route.php file. Do not understand what the previous meaning, we help to see how to set up I can normally write my controller without affecting the previous use:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.