Example #1
0
 /**
  * Redirect the Application
  * Calls the Router::getURL() method
  *
  * @param string $Route
  * @param array  $Parameters
  * @param null   $Fragment
  */
 public function redirect($Route, $Parameters = [], $Fragment = null)
 {
     Factory::getEventManager()->dispatch('Application.onRedirect');
     header('Location: ' . Factory::getRouter()->getURL($Route, $Parameters, $Fragment));
     exit;
 }