CodeIgniter Forums

Full Version: uri and route
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

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..

El Forum

anyone can help me?