CRUD->index([ 'filters' => ['name', 'uuid', 'perm_admin', 'Users.id'], 'quickFilters' => ['name'] ]); if ($this->ParamHandler->isRest()) { return $this->restResponsePayload; } $this->set('metaGroup', $this->isAdmin ? 'Administration' : 'Cerebrate'); } public function add() { $this->CRUD->add(); if ($this->ParamHandler->isRest()) { return $this->restResponsePayload; } $this->set('metaGroup', $this->isAdmin ? 'Administration' : 'Cerebrate'); } public function view($id) { $this->CRUD->view($id); if ($this->ParamHandler->isRest()) { return $this->restResponsePayload; } $this->set('metaGroup', $this->isAdmin ? 'Administration' : 'Cerebrate'); } public function edit($id) { $this->CRUD->edit($id); if ($this->ParamHandler->isRest()) { return $this->restResponsePayload; } $this->set('metaGroup', $this->isAdmin ? 'Administration' : 'Cerebrate'); $this->render('add'); } public function delete($id) { $this->CRUD->delete($id); if ($this->ParamHandler->isRest()) { return $this->restResponsePayload; } $this->set('metaGroup', $this->isAdmin ? 'Administration' : 'Cerebrate'); } }