Yii 2.0: yii2-language-selection-widget

Dropdown to select flags, change language
1 follower

Requirements

Yii2

Installation

composer require pceuropa/yii2-language-selection-widget dev-master

Configure

use pceuropa\languageSelection\LanguageSelection;
 
<?= LanguageSelection::widget([
    'language' => ['pl', 'en', 'fr', 'nl', 'de'],
    'languageParam' => 'language',
    'container' => 'li', // li for navbar, div for sidebar or footer example
    'classContainer' =>  'dropdown-toggle' // btn btn-default dropdown-toggle
]) ?>

Resources

Be the first person to leave a comment

Please to leave your comment.

Create extension
Downloads
No downloadable files yet