Hi
got to say I'm quite new to cake so...i'll try your suggest and see
what happens :D
As a rough test I created a new controller called IT and another for
EN-> they just render the content of my controller/action usign
requestAction...something like:
class ItController extends AppController
{
var $name = 'It';
var $uses = null;
var $helpers = array('Html','Javascript');
function events(){
$ids=$_GET['id'];
$this->set('lang','it');
$this->set('scheda', $this->requestAction("/events/detail/".$ids,
array('return')));
}
function download(){
//$ids=$_GET['id'];
if (!isset($_GET['id'])){
$this->set('lang','it');
$this->set('scheda', $this->requestAction("/events/download/",
array('return')));
}
else{
$this->set('lang','it');
$this->set('scheda',
$this->requestAction("/events/download_detail/".$_GET['id'],
array('return')));
}
}
}
Now i can call my url the way I like: www.mysite.com/it/events/index or
www.mysite.com/en/events/index
But i "suspect" I'm just doubling the stuff and mybe overloading the
system...
Your solutions got to be more performant.
BTW, thnx in advance for your hint.
Heiner, got to look deeper at the session thing ;)
dario
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---