PHP code example of simsol / yii2-multilang

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

    

simsol / yii2-multilang example snippets


    /**
      * {@inheritdoc}
      */
      public function rules()
      {
         return [
            ...
            [['translations'],'safe'],
         ];
      }
    

  Translate::saveTranslation($this->translations,$this->id_model,Model::class);