The following files exists in this folder. Click to view.
phpdoc-cache-file_af65329fbb534a6fdaf02005bddd151b.dat1 lines ASCII Unix (LF) O:39:"phpDocumentor\Descriptor\FileDescriptor":22:{s:7:" * hash";s:32:"2ae4f9f002d9432a406cd2c56a446a86";s:7:" * path";s:24:"MVC/TRedirectHelpers.php";s:9:" * source";s:613:"<?php
namespace Anax\MVC;
/**
* Helpers for redirecting to other pages and controllers.
*
*/
trait TRedirectHelpers
{
/**
* Redirect to current or another route.
*
* @param string $route the route to redirect to,
* null to redirect to current route, "" to redirect to baseurl.
*
* @return void
*/
public function redirectTo($route = null)
{
if (is_null($route)) {
$url = $this->di->request->getCurrentUrl();
} else {
$url = $this->di->url->create($route);
}
$this->di->response->redirect($url);
}
}
";s:19:"