XF 2.0 How to get access to object from my addon in global templates?

azamat.g

Member
Hello, brave XenForo developers :)

Sorry for some kind of stupid question, but I need to advice:

1) I can get (at example) Thread object in my addon (using some criterias etc.)

2) How can I get this object in "global" templates like PAGE_CONTAINER, forum_list, thread_list etc. ? I need to provide function with "get" prefix, like getThreadByCriterias($thread_id) or do something else?

Thank you for any advice and help.
 
Back
Top Bottom