// Display a dropdown list for the attribute 'status' echo CHtml::activeDropDownList($model, 'status', array('0'=>'Inactive', '1'=>'Active'));
// Display a multi-select dropdown list for the attribute 'products' echo CHtml::activeDropDownList($model, 'products', array('1'=>'Product 1', '2'=>'Product 2', '3'=>'Product 3'), array('multiple'=>true));In this example, we use the activeDropDownList to display a multi-select dropdown list for the attribute 'products' of the model class. The list displays three options: 'Product 1', 'Product 2', and 'Product 3' with the corresponding values 1, 2, and 3. The 'multiple' attribute is set to true to allow the user to select multiple options. Package Library: Yii Framework.