Exemple #1
0
 /**
  * @inheritdoc
  */
 public function afterFind()
 {
     $this->name_t = Language::d($this->name);
     //  $this->name_t = Language::t(static::tableName(), $this->name);
     // or If the category is the database table name.
     // $this->name_t = Language::t(static::tableName(), $this->name);
     // $this->description_t = Language::t(static::tableName(), $this->descrioption);
     parent::afterFind();
 }