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

Template Parser

Discussion in 'XenForo Development Discussions' started by Uniphix, Oct 27, 2011.

  1. Uniphix

    Uniphix Active Member

    Hi,

    I want to use the template parser to parse templates into Json for AJAX updates. Basically I have an editing field to edit something it switches to the editing view and then back if cancelled or updated. I am asking is there a good way to do this. Before I would do something in vb in the old way

    eval('$htmlResults = "' . template_parse('mytemplate') . '";'); i am sure i got that wrong but it was a mockup then i would pass that value to the values to encode in json... Any ideas how to do this?

    Ben
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

Share This Page