Feature #1251

Add route part handler support

Added by Bastian Waidelich over 13 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Should have
Category:
MVC
Target version:
-
Start date:
2008-08-08
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
Complexity:

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'
)
);
#1

Updated by Bastian Waidelich over 13 years ago

  • Category set to MVC
#2

Updated by Bastian Waidelich over 13 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r1122.

Also available in: Atom PDF