Jump to content

Parse template in PHP file?

Featured Replies

Posted

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?

  • Author

So how is this done?

Hello,

$this->registry->getClass('output')->getTemplate('global')->userHoverCard( $author )

 

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.