Organizational Research By

Surprising Reserch Topic

Experts Most Trusted Topic


route to multiple sub folders in codeigniter using -'php,codeigniter,routes,codeigniter-url,codeigniter-2'


route to multiple sub folders in codeigniter  using -'php,codeigniter,routes,codeigniter-url,codeigniter-2'

I have a admin folder set up in my controllers directory, under that i have 3 seperate sub-folders with controllers inside of them.

-- Controllers
---- Admin
------ Dashboard
-------- dashboard.php
-------- file.php
------ Members
-------- members.php
-------- file.php
------ Settings
-------- settings.php
-------- file.php


I tried routing it in the routes.php file like this

$route['admin/(:any)/(:any)'] = 'admin/$1/$2';
$route['admin/(:any)'] = 'admin/$1/$1';
$route['admin'] = 'admin/index';


What do I do to fix this?
    

asked Sep 7, 2015 by rajesh
0 votes
15 views



Related Hot Questions



Government Jobs Opening


...