Welcome Guest, Not a member yet? Register   Sign In
Handling url's
#6

[eluser]jacobson[/eluser]
mhm Tongue okey.. I've tried routes
$route['val/(:any)'] = 'val';

which means when you pass any variable like val/asnnuobn-cnaoca remap this to the val controller


technically it should work but when I try localhost/index.php/val/ncaojsnc-acnjc, it doesn't change, it also shows me the ncaojsnc-acnjc and after that the 404 error...

Ok, I managed to do it

I make a route
$route['val/(:any)'] = 'val/index/$1';
and in the controller i have function index($val) and it works correctly. Thanks for help


Messages In This Thread
Handling url's - by El Forum - 04-26-2011, 07:16 AM
Handling url's - by El Forum - 04-26-2011, 01:27 PM
Handling url's - by El Forum - 04-26-2011, 01:59 PM
Handling url's - by El Forum - 04-27-2011, 03:16 AM
Handling url's - by El Forum - 04-27-2011, 04:24 AM
Handling url's - by El Forum - 04-27-2011, 06:36 AM
Handling url's - by El Forum - 04-27-2011, 06:44 AM
Handling url's - by El Forum - 04-27-2011, 06:46 AM
Handling url's - by El Forum - 04-27-2011, 02:19 PM



Theme © iAndrew 2016 - Forum software by © MyBB