ZeroTolerance Posted April 14, 2015 Share Posted April 14, 2015 Hi. I have a problem with include tpl file in to mainpage. I have a code: function install(){ if (!parent::install()) return false; if (!$this->registerHook('home')) return false; return true; } function hookHome($params){ return $this->display(__FILE__, 'popup.tpl'); } But 'popup.tpl' didnt display onpage. I must write hook in template? Thanks for any help Link to comment Share on other sites More sharing options...
selectshop.at Posted April 14, 2015 Share Posted April 14, 2015 (edited) From what I can read, you are using a module, you want to include ? The code you added is one of a module you want to hook somewhere... Edited April 14, 2015 by selectshop.at (see edit history) Link to comment Share on other sites More sharing options...
ZeroTolerance Posted April 14, 2015 Author Share Posted April 14, 2015 Yeah, i hook it in "home". I have a code: function hookDisplayHome($params){ $this->context->smarty->assign( array( 'popup-header' => Configuration::get('popup-header'), 'popup-content' => Configuration::get('popup-header') ) ); return $this->display(__FILE__, 'popup.tpl'); } But i think prestashop engine don't try use that function bicause i write: die('ASDA'); but page still work. Module are instaled. 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