Example #1
0
 protected function rules()
 {
     return [['TEST'], String::create()->notEmpty()];
 }
Example #2
0
 protected function rules()
 {
     return [[[self::C_CODE], String::create()->notEmpty()->setMax(1024 * 1024)]];
 }