[Vtigercrm-developers] [Vtigercrm-Developers] which uitype replicates multiple user selection like in filter?
Alan Lord
alanslists at gmail.com
Wed Sep 28 12:15:00 GMT 2016
On 28/09/16 12:33, kiran wrote:
> Please anybody help me to get the users list into tpl file. I 'll share the
> code if anyone interested. I just need is users list with that 'll finish
> it.
$listOfUserRecordModels = Users_Record_Model::getAll();
This will get you the list of all active users. If you want inactive
users as well pass false as a parameter.
Assign your $listOfUserRecordModels variable to your View and
consequently the template and then iterate over it in a foreach to get
the display name and user_name or ID or whatever you want for the option
value.
Al
More information about the vtigercrm-developers
mailing list