[TYPO3-50-general] Need help with Routing
Bastian Waidelich
bastian at typo3.org
Tue Feb 3 16:06:49 CET 2009
Christoph Blömer wrote:
Hi Christoph,
> I have the following Routes.yaml
>
> WebDAV_Default:
> uriPattern: 'webdav/[path]'
> defaults:
> @package: 'WebDAV'
> @controller: 'Default'
> [...]
> Now I enter the URL http://localhost/webdav/Folder1/SubFolder2/
> I get the Exception
With the default Route mechanism this is not possible with only one
Route as it is now.
But you can register your own "RoutePartHandler". That must extend
F3::FLOW3::MVC::Web::Routing::DynamicRoutePart. Check out the
BlogExample for a working example of a really simple but working
RoutePartHandler.
It's configured like this:
post:
uriPattern: 'posts/[postUUID].html'
defaults:
@package: 'Blog'
@controller: 'Posts'
@action: 'show'
routePartHandlers:
postUUID: 'F3::Blog::RoutePartHandlers::PostRoutePartHandler'
Please note: the implementation of custom RoutePartHandlers might change
in the future and Routes are not cached yet.
If you need help or have feedback, let me know!
Bastian
More information about the TYPO3-project-5_0-general
mailing list