I have following code in my controller:
$model=new MForm;
$list=MForm::model()->findAllBySql('SELECT form_name FROM m_form');
var_dump($list);
It returns values of form_name(values are integer e.g 1, 2, 3 etc.) I created const in my controller:
const US=1;
const Ru=2;
I need to show const names such as Ru instead of 2 in my view file when it 2(US instead of 1). How can I do it?