Routing issue

#2
[eluser]Kristories[/eluser]
Try this..
Code:
$admin       = 'custom_admin';
$route[$admin]      = 'home/admin';
$route[$admin.'/([a-zA-Z0-9]+)']   = '$1/admin/index';
$route[$admin.'/([a-zA-Z0-9]+)/(:any)']  = '$1/admin/$2';
$route[$admin.'/login']    = 'auth/admin/login';
$route[$admin.'/logout']    = 'auth/admin/logout';

Just call http://yours.com/custom_admin/controller/method

I hope this help you..


Messages In This Thread
Routing issue - by El Forum - 03-06-2012, 07:35 PM
Routing issue - by El Forum - 03-08-2012, 02:47 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.