PHP code example of ayaalkaplin / yii2-multilang

1. Go to this page and download the library: Download ayaalkaplin/yii2-multilang 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/ */

    

ayaalkaplin / yii2-multilang example snippets


'urlManager' => [
    ******
    'enablePrettyUrl' => true,
    'showScriptName' => false,
    ******
]

<?= \ayaalkaplin\multilang\widgets\lang\Change::widget(); 

<?= Url::toRoute(['/multilang/back-lang/index']); 

php composer.phar 

php yii migrate --migrationPath=@vendor/ayaalkaplin/yii2-multilang/src/migrations