Download the PHP package causal/routing without Composer
On this page you can find all versions of the php package causal/routing. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download causal/routing
More information about causal/routing
Files in causal/routing
Package routing
Short Description Service to route HTTP/REST requests to your own controller/actions.
License GPL-2.0+
Homepage https://github.com/xperseguers/t3ext-routing
Informations about the package routing
Request Routing Service
Service to route HTTP/REST requests to your own controller/actions.
Good to know: The routing is inspired by the way Flow's router works (read more).
What does it do?
This extension lets you route requests like:
to any controller/action based on a YAML-based routing configuration. In this example, where 1234
and 99
will be
mapped to some method argument (and converted to domain object if needed) and json
will set the response format to
json
.
Sample Routing
The routing is stored as Configuration/Routes.yaml
(or Configuration/Routes.yml
) and looks like that
The name of the route is sent as additional header in the response:
Installation
-
Install extension with packagist:
-
Go to Extension Manager and activate extension
routing
-
Add a rewrite rule to your
.htaccess
:or, if you are using Nginx:
This will have the effect of using this extension for handling requests starting with routing/
.
Tip: If you need to support localization (&L=<some-language-uid>
), then you should change the suggesting routing
above to include the root page uid of your website (&id=<some-uid>
). This is needed because localization mode and
default language may differ in complex environments and thus cannot be inferred.
Read more in the manual.
Compatibility with TYPO3 v8
Since change 78002,
you need to adapt your TypoScript so that cHash
is not required: