[TYPO3-mvc] render Partial from other extension

Andreas Kiessling andreas.kiessling at web.de
Thu Mar 21 08:13:05 CET 2013


Hi Philipp,

Am 21.03.13 07:57, schrieb Philipp:
> Separating the view from the controller doesnt mean to HAVE to use an
> abstracted templating engine.
> 
> I would like to use it something like this:
> 
> $this->view->assign('property',$property);
> 
> And then be able to use Action.php as view. Just rendered in an output
> buffer. I wouldnt need to write viewhelpers for absolutely everything
> and could implement view-specific controll structures directly.

Then have a look at the php based views:
http://docs.typo3.org/typo3cms/ExtbaseFluidBook/8-Fluid/9-using-php-based-views.html
I think, you need to switch $this->viewData with $this->variables to get
it running. Have not used it for a while.

> 
> Whats really bad in Fluid is placing javascript code. Sometimes you
> simply CANT write all your code in separat JS files, sometimes you need
> to just write down an object for the use in javascript. And when it
> comes to a {} your code looks like CDATA CDATA CDATA CDATA....

That will be better with the "next" version of fluid:
http://forge.typo3.org/issues/43356

The backport is still pending: http://forge.typo3.org/issues/43705



HTH,
Andreas


More information about the TYPO3-project-typo3v4mvc mailing list