public function rules() { return [[['content', 'mobile'], 'required'], [['content'], 'string', 'length' => [5, 255]], [['mobile'], 'match', 'pattern' => '/^1[3|4|5|7|8][0-9]{9}$/']]; }