/** * @param string $url (default: '') * @return void */ protected function redirect($url = '') { $url = App::getBasePath() . $url; header('Location: ' . $url); exit; }