saifur Posted June 8, 2014 Share Posted June 8, 2014 (edited) I have found two way to display hook in pretashop 1.6 1. {hook h="displayBanner"} 2 . {$HOOK_TOP} What is the difference between two? If anybody know, please explain. Thanks Edited June 8, 2014 by saifur (see edit history) Link to comment Share on other sites More sharing options...
PSfever.com Posted June 8, 2014 Share Posted June 8, 2014 As far as I know, there should be no difference in terms of functionality between those two hooks. Link to comment Share on other sites More sharing options...
vekia Posted June 9, 2014 Share Posted June 9, 2014 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 1 Link to comment Share on other sites More sharing options...
PSfever.com Posted June 9, 2014 Share Posted June 9, 2014 Vekia is right about the process of creating those two hooks, I was talking only about their functionality. Also Vekia, congratz on 40k posts! 60k more to go :-) Link to comment Share on other sites More sharing options...
vekia Posted June 9, 2014 Share Posted June 9, 2014 Also Vekia, congratz on 40k posts! 60k more to go :-) tnx, I have a long road ahead of me Link to comment Share on other sites More sharing options...
Recommended Posts