https://src.bluestatic.org
/
hoplite.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc77ed1
)
Naïve implementation of RootController::LookupAction
author
Robert Sesek <rsesek@bluestatic.org>
Sat, 6 Aug 2011 16:10:06 +0000
(12:10 -0400)
committer
Robert Sesek <rsesek@bluestatic.org>
Sat, 6 Aug 2011 16:10:06 +0000
(12:10 -0400)
http/root_controller.php
patch
|
blob
|
history
diff --git
a/http/root_controller.php
b/http/root_controller.php
index f420c7f5f44e10e03a62a2200122092ae0d9622d..ca09e42905fb94058ebb75dea4cbd7fa24733232 100644
(file)
--- 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;
+ }
+ }
}