Esempio n. 1
0
 protected function getRules()
 {
     return array_merge_recursive(parent::getRules(), ['name' => [['not_empty'], [[$this, 'checkPostTypeLimit'], [':validation']]]]);
 }
Esempio n. 2
0
 protected function getRules()
 {
     return array_merge_recursive(parent::getRules(), ['name' => [['not_empty']]]);
 }