Ejemplo n.º 1
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(), 'id', 'cat_name');
	    return self::$_items;
	}