/**
* set the application language or the theme according to the choice of the user
* see protected/components/sectionMenu
* see protected/components/theme
*/
public function actionSettings()
{
if (isset($_POST['language']))
Yii::app()->user->setState('applicationLanguage',$_POST['language']);
if (isset($_POST['theme']))
Yii::app()->user->setState('theme',$_POST['theme']);
$this->redirect($_POST['url']);
}

/**
* set the application language or the theme according to the choice of the user
* see protected/components/sectionMenu
* see protected/components/theme
*/
public function actionSettings()
{
if (isset($_POST['language']))
Yii::app()->user->setState('applicationLanguage',$_POST['language']);
if (isset($_POST['theme']))
Yii::app()->user->setState('theme',$_POST['theme']);
$this->redirect($_POST['url']);
}

/* the behavior that loads other paramenters that can be loaded only runtime
* see protected/components/ApplicationConfigBehavior.php */
'behaviors'=>array(
'runTimeConfig'=>array(
'class'=>'ApplicationConfigBehavior'
)
),