Skip to content
Snippets Groups Projects
Commit e3c5bd89 authored by damjan's avatar damjan
Browse files

[TASK] Making controller/action routes

Important notice: uriPattern: '{@controller}(/{@action})' exists also in Forger package, and that makes conflict. To solve it, SGalinski.TypoScriptReferenceFrontend routes should be included in main Routes.yaml file before forger routes. And it should be prefixed in main Routes.yaml file like this: uriPattern: 'ts/<SGalinski.TypoScriptReferenceFrontend>'
parent 372c22ec
No related branches found
No related tags found
No related merge requests found
<?php
namespace SGalinski\TypoScriptReferenceFrontend\Controller;
/* *
......@@ -8,7 +9,7 @@ namespace SGalinski\TypoScriptReferenceFrontend\Controller;
use TYPO3\Flow\Annotations as Flow;
class StandardController extends \TYPO3\Flow\Mvc\Controller\ActionController {
class TsrefController extends \TYPO3\Flow\Mvc\Controller\ActionController {
/**
* @return void
......
-
name: 'default with controller and action'
uriPattern: '{@controller}(/{@action})'
defaults:
'@action': 'index'
'@controller': 'Tsref'
'@package': 'SGalinski.TypoScriptReferenceFrontend'
appendExceedingArguments: true
  • Owner

    The important notice must be added to a README. Doesn't makes much sense to add this here in the commit. Nobody would search for this stuff inside commits notes.

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment