why [size=“2”]Yii::app()->locale->getWeekDayName(‘week_day’) always returns Sunday in my code below. the value in database is correct, it store like 0 for sunday, etc.[/size]
<?php $this->widget('zii.widgets.CDetailView',array(
'htmlOptions' => array(
'class' => 'table table-striped table-condensed table-hover',
),
'data'=>$model,
'attributes'=>array(
'classRoom.class_room_name',
'staff.staff_name',
'subject.subject_name',
array(
'name'=>'week_day',
'value'=>Yii::app()->locale->getWeekDayName('week_day'),
),
'time_start',
'time_end',
),
)); ?>
thank you.