Jump to content

What is the difference between {hook h="hookName"} and {$HOOK_NAME} ?


Recommended Posts

There is difference, you can call {hook h="displayBanner"} anywhere you want (in tpl files) without creating variable in controllers.

 

{$HOOK_TOP} is a variable defined in controller, if controller doesnt contain this variable, you can't call it in .tpl file related to controller, it will not work.

 

it's better to dealwith {hook h=''} function instead of changing controllers

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...