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:
Alexander Demidov
2012-05-24 17:30:17 +04:00
parent e9ddaa6d92
commit 73ff07ce7d
2 changed files with 40 additions and 9 deletions

View File

@ -54,6 +54,11 @@ class Route
return true;
}
public function getUri()
{
return '/' . $this->route;
}
public function getAction()
{