Feature #1251
Add route part handler support
| Status: | Resolved | Start date: | 2008-08-08 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | Bastian Waidelich | % Done: | 100% |
|
| Category: | MVC | |||
| Target version: | - | |||
| PHP Version: | Complexity: | |||
| Has patch: | ||||
| Votes: | 0 |
Description
Route part handlers are classes which follow a certain interface and can resolve one ore more URL segments as well as build up URL parts from given data.
E.g. we'll need a route part handler to resolve titles of TYPO3 pages.
The configuration will look something like
$c->myRoute
->setUrlPattern('[language]/[[page]]/[[pluginOptions]]')
->setDefaults(
array(
'package' => 'TYPO3',
'controller' => 'Page',
'action' => 'default',
'language' => 'en'
)
)
->setRoutePartHandlers(
array(
'language' => 'F3_L10N_Routing_ISOResolver',
'page' => 'F3_TYPO3_Routing_PageResolver',
'pluginOptions' => 'F3_TYPO3_Routing_PluginResolver'
)
);
Associated revisions
- FLOW3: (MVC) Add route part handler support. A route part handler is basically nothing else than a specialized F3_FLOW3_MVC_Web_Routing_DynamicRoutePart and can be used to resolve one or multiple URL segments. Resolves #1251.
Note: There is no implementation of a route part handler yet.
History
Updated by Bastian Waidelich almost 5 years ago
- Category set to MVC
Updated by Bastian Waidelich almost 5 years ago
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100
Applied in changeset r1122.