Sim Posted June 7, 2020 Share Posted June 7, 2020 So with my item System I want different item types to show different pages based on the item type, but the HTML is going to be from an outside class and not the TPL. So I'm having an issue with adding html to the template: $this->html = $type->getHTML(); $this->html .= $type->getHTML(); adds the html twice. TPL public $placeholder = "{myHTML}"; PHP: $this->html .= $this->page->buildElement('placeholder', array( "myHTML" => $type->getHTML() )); SHOWS MY HTML CODE. DONT RENDER IT TPL: public $placeholder = " "; HTML: $this->html = $type->getHTML(); $this->html .= $this->page->buildElement('placeholder'); RESULT: (UGLY PHP CODE) But does what Its supposed to. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.