PHP code example of cinghie / yii2-multilanguage
1. Go to this page and download the library: Download cinghie/yii2-multilanguage library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cinghie / yii2-multilanguage example snippets
php composer.phar
<?= MultiLanguageWidget::widget([
'addCurrentLang' => true, // add current lang
'calling_controller' => $this->context,
'image_type' => 'classic', // classic or rounded
'link_home' => true, // true or false
'widget_type' => 'classic', // classic or selector
'width' => '28'
]);