CodeIgniter Forums
uri and route - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: uri and route (/thread-18471.html)



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

[eluser]italoc[/eluser]
i have a little problem with URI and ROUTE

i have defined this route

Code:
$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

/it/sirsa/prodotti/1520

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

[eluser]italoc[/eluser]
anyone can help me?