public function error($error) { $type = isset($error['type']) ? $error['type'] : 'undefined'; if ($type == 'ACCESS_DENIED') { if (in_array('Operatore', $this->user['role'])) { #$app->Redirect("logger/index"); } else { $this->Redirect('login/index', ['redirect' => curi_get_current()]); } } $this->render_theme(['view' => $error['message']]); }
function curi_update_current_params($params = []) { $u = curi_get_current(); return curi_update_params($u, $params); }