load user name by user id in template

sajal

Active member
I want to display username by user-id.

So I'm trying to find helper or something similar to load user by user-id in xen template.

Is there anything for that?
 
Unfortunately there's no helpers for that kind of thing.

You would have to either write your own helper in PHP, or ideally query for the information you need in and pass it to the template that requires it.

I'll move this to Development Discussions.
 
Back
Top Bottom