Remove class name from url

#1
[eluser]Suhas nazir[/eluser]
Hai All

I am trying to change the name of controller name from url its working but take a look at the below problem

i change the route as
$route['function_name/:any']='mycontroller/function_name';
Suppose if there is a parameter like this mycontroller/function_name/12';
the value 12 is not get in the function ...
How i rewrite the route to make it possible
Thanks in advance;

#2
[eluser]cahva[/eluser]
EDIT: removed. Bad advice Smile

I had a little error there.. Heres the correct one:
Code:
$route['function_name/(:any)'] = "controller/method/$1";


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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