Add method Router::getUri($route_name = null) - Give me this uri on route_name is null, other another route uri from route_name.
This commit is contained in:
@ -54,6 +54,11 @@ class Route
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public function getUri()
|
||||
{
|
||||
return '/' . $this->route;
|
||||
}
|
||||
|
||||
public function getAction()
|
||||
{
|
||||
|
Reference in New Issue
Block a user