6.0.0-alpha10
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
5/15/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#7197] Use Horde_Routes in jonah/delivery/index.php
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ .__..__ .___.__ | \| |[__)[__ | \ |__/|__\[__)[___|__/
Comment
> Here's some example routes code: > > > > $m = new Horde_Routes_Mapper(); > > $m->connect(':controller/:action/:id'); > > $m->connect('/admin/:section/:page', array( > > 'controller' => 'admin', > > 'section' => '', > > 'page' => '', > > )); > > $m->connect('/minutes/:date', array( > > 'controller' => 'minutes', > > 'date' => '', > > 'requirements' => array('date' => '\d{4}\-?\d{2}\-?\d{2}'), > > )); > > $m->connect('/page/:page', array( > > 'controller' => 'pages', > > 'requirements' => array('page' => '\w+'), > > )); > > > > $result = $m->routematch($_SERVER['REQUEST_URI']); > > if (!is_null($result)) { > > list($vars, $route) = $result; > > switch ($vars['controller']) { > > } > > > > Ben: I'm assigning this to you so you can write out the URL rules > that should be matched here (to make sure I get the intent right > instead of just looking at that switch statement). If you want to > pass this off afterward that's fine.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers