print registry field without zii.widgets.CDetailView

i have the next line code to look for registry by the attribute guatemala.gif in the gif field of the table paises


and i need to print (echo) other field called active of the same registry, but i don’t know how to do it without zii.widgets.CDetailView just like get plain sting e.g. “yes”

please can you help me?

I figure out

how I did it

note: I am using other fields.



'order'=>'gif', 'condition'=>'gif=:x', 'params'=>array(':x'=>'guatemala.gif')));

		echo "<img src=\"".Yii::app()->theme->baseUrl."/../../images/flags/$bandera[gif]\">";