Organizational Research By

Surprising Reserch 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

Related Hot Questions

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.