view

<?php echo CHtml::activeDropDownList($model, ‘id_item’, CHtml::listData(Item::model()->findAll(), ‘id’, ‘item’)); ?>

how can put it in form view

echo $item;

<?php echo CHtml::activeDropDownList($model, ‘id_item’, CHtml::listData(Item::model()->findAll(), ‘id’, ‘item’)); ?>

in above code Item is Model In these

provided to view in Form want that

In View where Want that

Simpla write

<?php

$model=Item::model()->findAll();

?>

or write In Controller

function Action<viewName>

{

$model=Item::model()->findAll();

}

and in VIew Access

$model->Attribute