Monday, May 21, 2012

Dynamic dropDownList with condition

<?php
        echo $form->dropDownList($model,'department', CHtml::listData(Departments::model()->findAll("activation=1"), 'name', 'name'), array('empty'=>'--please select--'));
     ?>

No comments:

Post a Comment