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
]) ?>
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.