Skip to content

Instantly share code, notes, and snippets.

@pumatertion
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pumatertion/c8223b815b7b2b02132c to your computer and use it in GitHub Desktop.
Save pumatertion/c8223b815b7b2b02132c to your computer and use it in GitHub Desktop.
BUG: Plugins by TS acting both on get params
<?php
namespace Acme\Foo\Controller;
/**
* Class BarController
*
* @package Acme\Foo\Controller
*/
class BarController extends \TYPO3\Flow\Mvc\Controller\ActionController {
/**
* @return void
*/
public function indexAction(){
}
/**
* @return void
*/
public function showAction(){
}
}
<!DOCTYPE html>
{namespace neos=TYPO3\Neos\ViewHelpers}
{namespace ts=TYPO3\TypoScript\ViewHelpers}
<html>
<body>
<f:section name="body">
{parts.foo -> f:format.raw()}
{parts.bar -> f:format.raw()}
</f:section>
</body>
</html>
prototype(Acme.Foo:Foo) < prototype(TYPO3.Neos:Plugin)
prototype(Acme.Foo:Foo) {
package = 'Acme.Foo'
controller = 'Foo'
action = 'index'
}
prototype(Acme.Foo:Bar) < prototype(TYPO3.Neos:Plugin)
prototype(Acme.Foo:Bar) {
package = 'Acme.Foo'
controller = 'Bar'
action = 'index'
}
<?php
namespace PIPEU\Site\Controller;
/**
* Class FooController
*
* @package Acme\Foo\Controller
*/
class FooController extends \TYPO3\Flow\Mvc\Controller\ActionController {
/**
* @return void
*/
public function indexAction(){
}
/**
* @return void
*/
public function showAction(){
}
}
<h1>FooController->indexAction()</h1>
<f:link.action action="show" controller="Foo" package="Acme.Foo">Click to call <strong>FooController</strong>->showAction()</f:link.action>
<hr/>
namespace: TypoScript=TYPO3.TypoScript
include: NodeTypes/FooAndBar.ts2
page = Page {
body {
templatePath = 'resource://Acme.Foo/Private/Templates/Page/Default.html'
partialRootPath = 'resource://Acme.Foo/Private/Partials'
sectionName = 'body'
parts {
foo = Acme.Foo:Foo
bar = Acme.Foo:Bar
}
}
}
<h1>FooController->showAction()</h1>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment