fix rules blocks

parent 2c0480eb
...@@ -51,8 +51,7 @@ class CoBlocks extends \common\components\ActiveRecordModel ...@@ -51,8 +51,7 @@ class CoBlocks extends \common\components\ActiveRecordModel
public function rules() public function rules()
{ {
return [ return [
[['title', 'name', 'text'], 'required'], [['title', 'name'], 'required'],
[['text'], 'string'],
[['category_id'], 'safe'], [['category_id'], 'safe'],
[['title'], 'string', 'max' => 250], [['title'], 'string', 'max' => 250],
[['name'], 'string', 'max' => 50], [['name'], 'string', 'max' => 50],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment