1000], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'mall_id' => 'Mall ID', 'created_at' => 'Created At', 'updated_at' => 'Updated At', 'content' => 'Content', 'post' => 'Post', 'route' => 'Route', ]; } public static function setData(array $params) { $model = new self(); $model->loadDefaultValues(); if (!$model->load($params, '') || !$model->save()) { Yii::error($model->getErrorMessage() . " == " . __METHOD__); } } }