21489 Posts in 5783 Topics by 2622 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 407 Views |
-
$this->Content ??

17 April 2011 at 10:11pm
I am trying to have a function in the controller that returns the default content for english and FrenchContent for french.
I noticed if I try to return $this->Content it always returns an empty string! how to access the page content otherwise?function GetContent(){
$language = Session::get('language');
if(!$language || $language === "english") return $this->Content;
if($language ==="french") return $this->FrenchContent; -
Re: $this->Content ??

18 April 2011 at 6:54am
I don't' follow your code - are you sure you are not trying to do this... http://www.ssbits.com/tutorials/2011/using-translatable-to-create-a-simple-multilingual-site/
| 407 Views | ||
|
Page:
1
|
Go to Top |


