[TYPO3-mvc] htmlspecialchars in FLUID

Sebastian KurfŸürst sebastian at typo3.org
Sat Jul 25 09:45:17 CEST 2009


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.

Greets,
Sebastian


More information about the TYPO3-project-typo3v4mvc mailing list