Last active
November 9, 2016 09:03
-
-
Save alexermakov/861105f7c0428f2057f7b2ca241c7f4d to your computer and use it in GitHub Desktop.
create hook in prestashop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
// для модуля регистрируем при установке | |
public function install() { | |
if !parent::install() || !$this->registerHook('leftColumn') || !$this->registerHook('myCustomHook')) | |
return false; | |
return true; | |
} | |
// даем отображение | |
public function hookMyCustomHook($params) | |
{ | |
return $this->display(__FILE__, 'nameofmynewmodule.tpl'); | |
} | |
// выводим где надо | |
{hook h='myCustomHook'} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment