@@ -30,6 +30,7 @@ class TopSlider extends \yii\db\ActiveRecord
public function rules()
{
return [
+ [['post_id', 'published_from', 'published_to'], 'required'],
[['post_id', 'is_active'], 'integer'],
[['published_from', 'published_to'], 'safe'],
];