nozzula Posted July 18, 2014 Share Posted July 18, 2014 (edited) 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 July 22, 2014 by nozzula (see edit history) Link to comment Share on other sites More sharing options...
nozzula Posted July 22, 2014 Author Share Posted July 22, 2014 (edited) Solved using $this->module->l('A visitor', 'display'); where 'display' is my front controller Edited July 22, 2014 by nozzula (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now