How can i add a firstname
and lastname
in a Form select ?
$form->add(new Select( "client" , Clients::find() ,
[
'using' => ['id','firstname'], # so i can select the firstname but i also want to add the lastname with the first
'data-placeholder' => "Members",
'class' => "chosen-select"
]
));