cis Posted July 21, 2014 Share Posted July 21, 2014 Hi, I am using PS 1.5.6.1, i want to load module on a .tpl file I have a tab on which i want to show auction items,for this i bought a auction module. so is there any way that i can load auction module on my tab page. Please help me! Thanks. Link to comment Share on other sites More sharing options...
vekia Posted July 21, 2014 Share Posted July 21, 2014 your "tab page" must have a hook, even custom hook, then your auction module must be attached to this hook so simply: 1) create new hook 2) create function in your module to support your new hook and display contents as a tpl file. 1 Link to comment Share on other sites More sharing options...
cis Posted July 21, 2014 Author Share Posted July 21, 2014 You mean that Firstly create a custom hook.(directly in DB or from code) then I have to register new hook in auction modules php file then load it on to my tpl file Thanks. Link to comment Share on other sites More sharing options...
cis Posted July 21, 2014 Author Share Posted July 21, 2014 Hi Vekia Please tell me,, what did you mean? Link to comment Share on other sites More sharing options...
vekia Posted July 21, 2014 Share Posted July 21, 2014 i don't know what kind of code your module contains. but for example, you created hook named: MyNewHook so, in module .php file you have to use code like: public function hookMyNewHook($params){ // do something } where // do something is a code to display some contents in that hook via .tpl file etc. Link to comment Share on other sites More sharing options...
cis Posted July 30, 2014 Author Share Posted July 30, 2014 Thanks vekia,,,It works for me !! Thanks. Link to comment Share on other sites More sharing options...
vekia Posted July 30, 2014 Share Posted July 30, 2014 great ! thank you for informations that it works i marked topic as solved. with regards, Milos 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