Jump to content

[SOLVED] Translation in ModuleFrontController


nozzula

Recommended Posts

It seems that we can't use the l() function inside of an extended ModuleFrontController()

$label = ($this->context->cookie->logged ? $this->context->cookie->customer_firstname.' '.$this->context->cookie->customer_lastname : $this->l('A visitor'));

I got this error:

Fatal error: Call to undefined method mymoduledisplayModuleFrontController::l() in

 

Any advice would be greatly appreciated.

Edited by nozzula (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...