Interferon Posted May 2, 2016 Share Posted May 2, 2016 I want to insert the user hovercard template into a PHP page. In an HTML page it would be done like this: {parse template="userHoverCard" group="global" params="$author"} This produces an error when inserted in a PHP page. How can I correctly include templates like this in PHP, in IP.Content? Link to comment Share on other sites More sharing options...
Interferon Posted May 4, 2016 Author Share Posted May 4, 2016 So how is this done? Link to comment Share on other sites More sharing options...
newbie LAC Posted May 4, 2016 Share Posted May 4, 2016 Hello, $this->registry->getClass('output')->getTemplate('global')->userHoverCard( $author ) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.