yii2-language-selection-widget Dropdown to select flags, change language

  1. Requirements
  2. Installation
  3. Configure
  4. Resources

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

0 0
2 followers
0 downloads
Yii Version: 2.0
License: MIT
Category: User Interface
Developed by: pceuropa
Created on: Jan 7, 2017
Last updated: a year ago

Related Extensions