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

Edit a template in PHP code?

Discussion in 'XenForo Development Discussions' started by Jaxel, Dec 24, 2012.

  1. Jaxel

    Jaxel Well-Known Member

    So lets say I have an addon; with some options with it. Is there a way, so that when a person clicks "save", it writes some data to a template? A master template of course.
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Probably refer to this action:

    XenForo_ControllerAdmin_Template::actionSave

    Gotta use the template datawriter.
     
  3. Jaxel

    Jaxel Well-Known Member

    Yep, that was it. I can pull in a template, and then save it into the datawriter and XenForo will handle the rest automatically.
     

Share This Page