projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d2a2cd
)
local route overrides and basic admin + page routes
author
Chuck Hagenbuch
<chuck@horde.org>
Wed, 14 Jan 2009 05:19:06 +0000
(
00:19
-0500)
committer
Chuck Hagenbuch
<chuck@horde.org>
Wed, 14 Jan 2009 05:59:34 +0000
(
00:59
-0500)
hydra/config/routes.php
patch
|
blob
|
history
diff --git
a/hydra/config/routes.php
b/hydra/config/routes.php
index
e69de29
..
f2534bf
100644
(file)
--- a/
hydra/config/routes.php
+++ b/
hydra/config/routes.php
@@
-0,0
+1,13
@@
+<?php
+
+// Admin index
+$mapper->connect('admin', array('controller' => 'admin'));
+
+// Default route for serving content
+$mapper->connect('page', ':page', array('controller' => 'page'));
+
+
+// Local route overrides
+if (file_exists(dirname(__FILE__) . '/routes.local.php')) {
+ include dirname(__FILE__) . '/routes.local.php';
+}