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

[eluser]whidbey[/eluser]
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
"localhost/index.php/admin"
it will appear the main.php controller.
and the url is the main.php's
what's that mean?
thx
#2

[eluser]whidbey[/eluser]
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
#3

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


good luck.
#4

[eluser]whidbey[/eluser]
thx,Smile




Theme © iAndrew 2016 - Forum software by © MyBB