Welcome Guest, Not a member yet? Register   Sign In
Subfolder Controller Please help
#1

[eluser]johanriyan[/eluser]
Dear Master,

i have error page not found when my routes setting like this :

$route['admin'] = "admin/auth/index"; ->" This is work"

but
this is not work.

$route['admin/administrator'] = "admin/administrator/home/index";

after authentication redirect to
redirect('admin/administrator','refresh');

but not work.

i'm confuse.

my direktory folder :

Controller
----admin ->(this is foler)
----auth.php
-------------Administrator ->(this is foler)
-------------home.php

how to solve this problme.
thks
#2

[eluser]CroNiX[/eluser]
What order are your routes in? It matters. The routes work from top down, and keep going until they find the first match. So you need your more specific routes (meaning more segments) first.

admin/administrator
comes before
admin




Theme © iAndrew 2016 - Forum software by © MyBB