i got a table ‘tasks’ where i save two user_id’s. The first one for the “person in charge” and the second one for the creator.
Now i want to show both name.
For the person in charge i use a virtual field:
Model: public $virtualFields = array("full_name"=>"CONCAT(User.first_name, ' ' ,User.last_name)"); public $displayField = 'full_name'; View: echo $task['User']['full_name'];`
I don’t know how to represent the name of the “creator_id”.
Thanks for the help.