• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
uri and route

#1
[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..


Messages In This Thread
uri and route - by El Forum - 05-07-2009, 09:13 AM
uri and route - by El Forum - 05-07-2009, 03:36 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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