i have same model SeachAd with CListView atributeLabes not encoded utf , the problem is in sitecontroller i have
actions()
{
'items'=>'application.controller.ItemController'
}
and when i call in layout CMENU
array('label'=>'Apartments', 'url'=>array('items/apartments'),'linkOptions'=>array('class'=>'midle')
i click the Apartments link render ItemController which have apartments action
public function actionApartments(){
$dataProvider=new CActiveDataProvider('SeachAd',array( 'criteria'=>array(
'with'=>'AddsOptions.Pictures',
'condition'=>'kat_id=1',
), ));
$this->render('apartments',array('data'=>$dataProvider));
}
thats work to,
then view renders
$this->widget('zii.widgets.CListView', array(
'dataProvider'=>$data,
'itemView'=>'items',
//'viewData'=>$kats,
'sortableAttributes'=>array(
'name',
'tribalstate',
'location',
'zip',
),
));
in model SeachAd atribte labels have special characters , š ,ž ,
public function attributeLabels(){
return array(
'name' =>'Naslov',
'tribalstate' =>'Odaberite županiju',
'location'=>'Odaberite mjesto',
'zip'=>'Poštanski Broj',
);
}
te widget view order by have Odaberite �upaniju ,
encoding bug