1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Within a model - use of a template?

Discussion in 'XenForo Development Discussions' started by AlexT, Mar 27, 2013.

  1. AlexT

    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.
  2. AlexT

    AlexT Well-Known Member

    Nevermind, I don't need template really but only phrases, which I know how to do in this case. :oops:
  3. tyteen4a03

    tyteen4a03 Well-Known Member

    You're probably looking to create, or extend a Controller.
    AlexT likes this.

Share This Page