[TYPO3-mvc] htmlspecialchars in FLUID

Steffen Kamper info at sk-typo3.de
Sat Jul 25 11:09:28 CEST 2009


Sebastian KurfŸürst schrieb:
> Hi Steffen,
> 
> 
>> i also tried to make a "NULL" ViewHelper, where i do
>>
>> $this->objectAccessorPostProcessorEnabled = FALSE;
>> return $this->renderChildren();
> You do this in the "render" method, right?
> This is the problem :-)
> 
> Just try to set the class property, so do:
> 
> class Tx_Bla_MyViewHelper extends ...AbstractViewHelper {
> 
> protected $objectAccessorPostProcessorEnabled = FALSE;
> 
> public function render() {
> return $this->renderChildren();
> }
> 
> 
> Your code does not work because Fluid needs to know if the 
> ObjectAccessorPostProcessor is enabled _before_ calling your render 
> method and giving control to the ViewHelper to ensure a consistent 
> behavior.
> 

indeed this works :)
Shouldn't we include such NullViewHelper in fluid?

vg Steffen


More information about the TYPO3-project-typo3v4mvc mailing list