I am using Codeigniter 2 and am currently using the 'Routers' config file to set the routes. I am also using IonAuth library. I have a code that does something like:
$route['admin/(login|logout|change_password|forgot_password|reset_password
|activate|deactivate|create_user)'] = "auth/$1";
Now my problem is that, in some of the IonAuth methods, there are none, 1 or 2 parameters. If I try to access the url like:
http://localhost/ion_auth_try/admin/deactivate/1
I get an 404 error.
The signature of the 'deactivate' method is
function deactivate($id = NULL)
I've been trying to solve this for a long time now. I'm stuck.
$route['admin/deactivate/(:num)'] = "auth/$1";
And I want to access 'admin/deactivate/' I can't. – Sworup Shakya Jul 12 '12 at 09:55