fix rules blocks

parent 2c0480eb
......@@ -51,8 +51,7 @@ class CoBlocks extends \common\components\ActiveRecordModel
public function rules()
{
return [
[['title', 'name', 'text'], 'required'],
[['text'], 'string'],
[['title', 'name'], 'required'],
[['category_id'], 'safe'],
[['title'], 'string', 'max' => 250],
[['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