Hi,
I have a simple but big problem
I would like show two columns value as my label in a select.
This is my current code:
<?php
echo $form->dropDownList(
$model, 'client_id',
CHtml::listData(
Clienti::model()->findAll(), 'id', 'name'),
array( 'class' => 'form-control select2', 'prompt' => 'Select tour...' )
);
?>
Instead of the name only I would like name and surname. How can I do? Thanks