Difference between #3 and #4 of
How to use an application behavior to maintain runtime configuration

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(); ?> ```
26 0
25 followers
Viewed: 42 368 times
Version: 1.1
Category: How-tos
Written by: zaccaria
Last updated by: Pablovp
Created on: Jun 17, 2011
Last updated: 11 years ago
Update Article

Revisions

View all history