PHP code example of skeeks / cms-multi-language

1. Go to this page and download the library: Download skeeks/cms-multi-language 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/ */

    

skeeks / cms-multi-language example snippets


<? $modal = \yii\bootstrap\Modal::begin([
        'id' => 'sx-lang-modal',
    'header' => \Yii::t('skeeks/multi-lang/main', 'Choose your language'),
    'footer' => '<button type="button" class="btn btn-default" data-dismiss="modal">
        '.\Yii::t('skeeks/multi-lang/main', 'Close').'
    </button>',
]); 


Url::to(['/module/controller/action', 'id' => 20, 'lang' => 'en'])
// /en/module/controller/action?id=20

Auto translate
-----