Esempio n. 1
0
 /**
  * @inheritdoc
  */
 public function rules()
 {
     return [[['name'], 'required'], [['parent_name'], 'filterParent'], [['parent_name'], 'in', 'range' => self::find()->select(['name'])->column(), 'message' => 'Menu "{value}" not found.'], [['parent', 'route', 'data', 'order'], 'default'], [['order'], 'integer'], [['route'], 'in', 'range' => AccessHelper::getSavedRoutes(), 'message' => 'Route "{value}" not found.']];
 }