Jump to content

Override renderView in AdminCustomersController


waldocosman

Recommended Posts

Hi,

 

I'm new to Prestashop, so that's why I'm asking this question:

 

I would like to change the renderView function of the AdminCustomersController. I saw that there is an override function possibility, but I don't get it working.

 

Is it possible to add the renderView function to the AdminCustomsersController (in the override folder), so it uses the regular view, but where you can add specific variables to the template?

 

i.e. (this doesn't work but maybe you get my point)

class AdminCustomersController extends AdminCustomersControllerCore
{
public function renderView()
{
parent::renderView();

$this->tpl_view_vars["var"] = "text or var";

return parent::renderView();

}
}

 

Thanks in advance

Edited by waldocosman (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...