PHP code example of jakharbek / yii2-langs

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

    

jakharbek / yii2-langs example snippets


 \jakharbek\langs\components\QueryBehavior
 

 YourModel::find()->lang()->...
 

php composer.phar 
 
    'on beforeAction' => function () {
        jakharbek\langs\components\Lang::onRequestHandler();
    },