From 502d1611f5228de6d560b89b74698ed77abe82a3 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 6 Aug 2011 12:10:06 -0400 Subject: [PATCH] =?utf8?q?Na=C3=AFve=20implementation=20of=20RootControlle?= =?utf8?q?r::LookupAction?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- http/root_controller.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/http/root_controller.php b/http/root_controller.php index f420c7f..ca09e42 100644 --- a/http/root_controller.php +++ b/http/root_controller.php @@ -154,5 +154,11 @@ class RootController @param string Class name. */ public function LookupAction($class) - {} + { + $map = $this->url_map->map(); + foreach ($map as $pattern => $action) { + if ($action == $class) + return $pattern; + } + } } -- 2.22.5