Access

Navigation:  Development > Language >

Access

Previous pageReturn to chapter overviewNext page

Language access is enabled in all Class and Methods of appRain. Following method is used to access a code.
 
$this->__([CODE]);

 

See below example:
 
echo $this->__('_HOME');

 

Common Tips:
Most of the cases we pass a general word in language method and it return the value of the code otherwise it just return same code. So we use like below:
 
echo $this->__('About Us');

 

Now if we do not define any "About us" as a code then it will print same "About Us" and if we define  "Lorem Ipsume" as a value against it. the method will return the value.