private static function loadItems()
 {
     self::$_items = array();
     $models = self::model()->findAll();
     foreach ($models as $model) {
         self::$_items[$model->bank_id] = $model->bank_full_name;
     }
 }
Exemplo n.º 2
0
	/**
	* Generate array for dropdown list to use in child form.
	* @return array $_items
	*/
	public static function items()
	{
	    self::$_items = CHtml::listData(self::model()->findAll(), 'bank_id', 'bank_full_name');
	    return self::$_items;
	}