Jump to content

Edit History

AcidLava

AcidLava

Hello Mediacom87, thanks for your time.

I've seen this one but it's not very clear to me. In my case and for example, I make a folder ps_languageselector in override/modules, then a file ps_languageselector.php.

In the .php file I write :

public function install()
 {
     $this->registerHook('displayHeader');
 }

 public function hookDisplayHeader(array $params)
 {
     // Your code.
 }

What I am supposed to add in "Your code" ?

Thanks.

AcidLava

AcidLava

Hello Mediacom87, thanks for your time.

I've seen this one but it's not very clear to me. In my case and for example, I make a folder ps_languageselector in override/modules, then a file ps_languageselector.php.

In the .php file I add :

public function install()
 {
     $this->registerHook('displayHeader');
 }

 public function hookDisplayHeader(array $params)
 {
     // Your code.
 }

What I am supposed to add in "Your code" ?

Thanks.

×
×
  • Create New...