Helo bakers!
I'm doing a multilingual site for which I'm utilising AD7six's Locale
component (snippets) and it's really great. My way of redirecting to
specific language pages is the following:
In the AppController:
---
function beforeFilter()
{
// default language is british english
if (!$this->Session->check("Lang.Code"))
$this->Session->write("Lang.Code", "en_gb");
$langcode = $this->Session->read("Lang.Code");
$this->layout = "default_" . $langcode;
$view = $this->params["action"];
$this->langpage = $view."_".$langcode;
}
---
Then in the other controllers I use simply the statement $this-
>render($this->langpage) to display the appropiate page. Have a look
at the following action:
---
function subscribe($address)
{
// some more code ...
$this->set("address", $address);
$this->render($this->langpage);
}
---
Nevertheless in newsletter/subscribe_en_gb.thtml the following error
occurs and I don't know why:
Notice: Undefined variable: address
Thanks in advance for any help!
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---