Welcome Guest, Not a member yet? Register   Sign In
the sub-folder in the controllers folder

my default controll In the controllers folder is "main.php"
and I create a sub folder name "admin" in the controller folder.
In my browser I enter
it will appear the main.php controller.
and the url is the main.php's
what's that mean?

I add one line in routes.php
:$route['system'] = "admin/main";
and put main.php in controllers/admin folder

and now localhost/index.php/admin can see my own main controller.
Is that right??thx

why not do $route['admin'] = "admin/main";

good luck.


Theme © iAndrew 2016 - Forum software by © MyBB