CodeIgniter Forums
uri and route - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: uri and route (/thread-18471.html)

uri and route - El Forum - 05-07-2009

i have a little problem with URI and ROUTE

i have defined this route

$route['default_controller'] = "sirsa";
$route['scaffolding_trigger'] = "";
$route['(\w{2})/(.*)'] = '$2';
$route['(\w{2})'] = $route['default_controller'];
$route['sirsa/prodotti/(:num)'] = "sirsa/prodotti/$1";

and i would like that when i write an url in a browser like this


set the language as IT and call controller "sirsa" and function "prodotti" and in the end pass a variable with a predefined name and value "1520"

it's possibile??

thank you..

uri and route - El Forum - 05-07-2009

anyone can help me?