Jump to content

[SOLVED] Load Module on .tpl file


Recommended Posts

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

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.

  • Like 1
Link to comment
Share on other sites

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

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

  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...