public function rules()
 {
     $method = 'rules' . ucFirst($this->action);
     if (method_exists($this, $method)) {
         $this->{$method}();
     } elseif ($this->admin) {
         $this->rulesAdmin();
     } else {
         throw new \Exception(ErrorMessage::controllers(1, $method, get_class($this)));
     }
 }