s7anley Posted March 17, 2011 Share Posted March 17, 2011 Hi, i just founded strange behavior, not sure if it's just in today final or in old version too. I tried change position of blocksearch. I added hookFooter and deleted registerHook for hookLeftColumn, hookRightColumn and hookTop. Because of that necessary css and js weren't loaded (jquery.autocomplete.css, jquery.autocomplete.js etc.). I checked displayHeader function in FrontControler and only HOOK_HEADER, HOOK_TOP and HOOK_LEFT_COLUMN are assigned here. Is there any way how add css and js when hooking something in to different place? For example from Footer.Thanks Link to comment Share on other sites More sharing options...
s7anley Posted March 17, 2011 Author Share Posted March 17, 2011 Is this proper way how to solved this? <?php class FrontController extends FrontControllerCore { public function displayHeader() { self::$smarty->assign('HOOK_FOOTER',Module::hookExec('footer')); parent::displayHeader(); } } Link to comment Share on other sites More sharing options...
psyray Posted September 8, 2011 Share Posted September 8, 2011 works great thanks Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now