#1316: Add description for routes
-------------------------+--------------------------------------------------
Reporter: anonymous | Owner: dominik
Type: enhancement | Status: new
Priority: normal | Milestone: 1.0.4
Component: routing | Version: 1.0.3
Severity: normal | Keywords:
Has_patch: 0 |
-------------------------+--------------------------------------------------
Route information could do with a description attribute.
{{{
<route name="foo" pattern="^/bar$" action="Foo" module="Bar"
desciption="FooBar" />
}}}
Benefits
1. Make the routing.xml more self declarative
1. This information could be used when building site maps or navigation
links etc.
{{{
$matchedRoutes = $this->rq->getAttribute('matched_routes',
'org.agavi.routing');
foreach ($matchedRoutes as $route) {
$routeInfo = $ro->getRoute($route);
//Generate some navigation links from the info using 'description' as
the title
}
}}}
Problems:
* This maybe should be localizable?
This wouldn't break BC and could be done with just few changes to the xsd
and routing config handler. (AFAIK).
--
Ticket URL: <http://trac.agavi.org/ticket/1316>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets