Within a model - use of a template?

AlexT

Well-known member
I am writing an addon (my first) that is extending the XenForo_Model_Report class (via listening to load_class_model). That works well.

What I don't know is how I can query a template from within that model. I have variables that I want to apply to that template, and then use that template as the content of a automated thread (via XenForo_DataWriter_Discussion_Thread). I am also new to the MVC architecture, so I don't know if I am even "allowed" to query anything related to templates within the extended model class, even if the template is not meant to display anything on the screen.

Appreciate the help.
 
Nevermind, I don't need template really but only phrases, which I know how to do in this case. :oops:
 
Top Bottom