Comparing
#7 with
#8
Revision #8 was created by
atrandafir on Dec 9, 2010, 1:22:42 AM.
removed the short tags for compatibility issues for all users
Content
[...]
{
$currentLang = Yii::app()->language;
$this->render('langBox', array('currentLang' => $currentLang));
}
}
?>
```
**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>
<
/form>
?php echo CHtml::endForm(); ?>
```