Thursday, June 25, 2009

Re: Going live issue with l10n

The app_controller looks like this :
Uses('L10n',i18n);

class AppController extends Controller {
function beforeFilter()
{
if(empty($this->L10n)){
$this->L10n = new L10n();
}
if(empty($this->i18n)){
$this->i18n = new i18n();
}
}
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: