mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
Return more detailed information from router
This commit is contained in:
parent
f8ea38c22d
commit
4c7e3dea82
2 changed files with 31 additions and 16 deletions
|
|
@ -235,13 +235,19 @@ class Context
|
|||
self::setRequestMethod();
|
||||
if (in_array(self::$_instance->request_method, array('GET', 'POST')))
|
||||
{
|
||||
$args = Rhymix\Framework\Router::getRequestArguments(Rhymix\Framework\Router::getRewriteLevel());
|
||||
$method = $_SERVER['REQUEST_METHOD'] ?: 'GET';
|
||||
$url = $_SERVER['REQUEST_URI'];
|
||||
$route = Rhymix\Framework\Router::getRequestArguments($method, $url, Rhymix\Framework\Router::getRewriteLevel());
|
||||
self::setRequestArguments($route->args);
|
||||
if ($route->status !== 200)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$args = array();
|
||||
self::setRequestArguments();
|
||||
}
|
||||
self::setRequestArguments($args);
|
||||
self::setUploadInfo();
|
||||
|
||||
// If Rhymix is installed, get virtual site information.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue