ListBox

Good night forum.

I’m new in the framework and i have a question, I am trying to create a report using a listbox, but still do not understand how the selection of the listbox is used?

Thanks

here take a look at this post it might help you

http://www.yiiframework.com/forum/index.php/topic/22227-example-of-listbox/


<?php echo $form->listBox($model, 'categories', $model->categories, array('multiple' => 'multiple', 'style' => 'width:180px;height:80px;')); ?>

You can select/deselect items holding the Control key and then clicking the item

thank you both!! (: