Revision #4 has been created by Pablovp on May 2, 2012, 12:36:25 PM with the memo:
For the widget to properly work, lang needs to have the same name in the dropdown and the post data.
« previous (#3)
Changes
Title
unchanged
How to use an application behavior to maintain runtime configuration
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
application, configuration, behavior
Content
changed
[...]
**components/views/langBox.php**
```php
<?php echo CHtml::form(); ?>
<div id="langdrop">
<?php echo CHtml::dropDownList('_lang', $currentLang, array(
'en_us' => 'English', 'is_is' => 'Icelandic'), array('submit' => '')); ?>
</div>
<?php echo CHtml::endForm(); ?>
```