Task #2342

Routing: Replace square brackets by curly brackets in dynamic Route Parts

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

Status:
Resolved
Priority:
Should have
Category:
MVC
Start date:
2008-12-19
Due date:
% Done:

100%

Estimated time:
Sprint:
PHP Version:
Has patch:
Complexity:

Description

Currently we use square brackets to define a dynamic Route Part:

[@package]/[@controller]/[@action]

To become more similar to the syntax of the upcoming FLOW3 templating engine Fluid, and to be able to use square brackets in URIs (without the need of implementing an escaping syntax) we decided to change the syntax to:
{@package}/{@controller}/{@action}

Additionally, dynamic parts should be enclosed in curly brackets in name patterns too. So instead of:

F3\@package\MVC\Controller\@controllerController

it will be
F3\{@package}\MVC\Controller\{@controller}Controller

#1

Updated by Robert Lemke almost 13 years ago

  • Target version changed from 0.1 to 1.0 alpha 1
#2

Updated by Bastian Waidelich over 12 years ago

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

Applied in changeset r1921.

Also available in: Atom PDF