class RbacAttachItemForm extends CFormModel {
public $authItems;
public function __construct($attributes=array(),$scenario='') {
$this->authItems = Yii::app()->authManager->getAuthItems();
parent::__construct($attributes,$scenario);
}
}
The only thing is, it renders the type as numbers, which is quite logical. How can I get the objects (CAuthItems) to have a new property containing a human-friendly name for the type they're holding?