XF 2.0 <xf:username user="{$userLatest}" /> in PHP code

Jean-Baptiste

Well-known member
Hello,

I would like to call that :
<xf:username user="{$userLatest}" />
But in PHP (to render things in PHP, without using XenForo's templates).

How can I do that ?

Regards
 
I would recommend doing it through a template if you can as it's just clearer, otherwise you can see/call the fnUsernameLink function in the templater.
 
Back
Top Bottom