[TYPO3-mvc] Best practise for extdirect and extbase

Dennis Ahrens dennis.ahrens at googlemail.com
Thu Apr 28 15:16:01 CEST 2011


Hi Kevin,

do you write a plugin or a module? I've not tested the FE stuff since 
the backport of the FLOW3 package - would be greate to get some feedback 
related to FE.

On 28.04.2011 14:52, Kevin Ulrich Moschallski wrote:
> 1. The controller actions aren't usable for normal views, i.e. fluid
> because the method $this->view->setConfiguration() doesn't exist in fluid.

I've worked around this problem by using

if ($this->request->getFormat() === 'extdirect') {
	// do DirectView related stuff
}

inside the action that should be usable for other formats, too.

> 2. The possibility to use viewhelpers in combination with a basic
> template for the actions would be nice, this also would fix problem 1. A
> viewhelper would be nice i.e. for image manipulation. Currently i have a
> very ugly workaround in my controller where i resize the image manualy
> by copying the viewhelper logic.

Don't get the point here - you like to use format.image ViewHelper to 
hand over the result inside a Ext.Direct response?

regards
Dennis


More information about the TYPO3-project-typo3v4mvc mailing list