예제 #1
0
파일: EntityTest.php 프로젝트: jarick/bx
 protected function rules()
 {
     return [['TEST'], String::create()->notEmpty()];
 }
예제 #2
0
파일: ConsoleWidget.php 프로젝트: jarick/bx
 protected function rules()
 {
     return [[[self::C_CODE], String::create()->notEmpty()->setMax(1024 * 1024)]];
 }