/**
  * Override: forcibly disables page caching - a TRUE condition
  * in this ViewHelper means page content would be depending on
  * the current visitor's session/cookie/auth etc.
  *
  * Returns value of "then" attribute.
  * If then attribute is not set, iterates through child nodes and renders ThenViewHelper.
  * If then attribute is not set and no ThenViewHelper and no ElseViewHelper is found, all child nodes are rendered
  *
  * @return string rendered ThenViewHelper or contents of <f:if> if no ThenViewHelper was found
  * @api
  */
 protected function renderThenChild()
 {
     if ('FE' === TYPO3_MODE) {
         $GLOBALS['TSFE']->no_cache = 1;
     }
     return parent::renderThenChild();
 }
Exemplo n.º 2
0
 /**
  * Override: forcibly disables page caching - a TRUE condition
  * in this ViewHelper means page content would be depending on
  * the current visitor's session/cookie/auth etc.
  *
  * Returns value of "then" attribute.
  * If then attribute is not set, iterates through child nodes and renders ThenViewHelper.
  * If then attribute is not set and no ThenViewHelper and no ElseViewHelper is found, all child nodes are rendered
  *
  * @return string rendered ThenViewHelper or contents of <f:if> if no ThenViewHelper was found
  * @api
  */
 protected function renderThenChild()
 {
     $GLOBALS['TSFE']->no_cache = 1;
     return parent::renderThenChild();
 }
 /**
  * Override: forcibly disables page caching - a TRUE condition
  * in this ViewHelper means page content would be depending on
  * the current visitor's session/cookie/auth etc.
  *
  * Returns value of "then" attribute.
  * If then attribute is not set, iterates through child nodes and renders ThenViewHelper.
  * If then attribute is not set and no ThenViewHelper and no ElseViewHelper is found, all child nodes are rendered
  *
  * @return string rendered ThenViewHelper or contents of <f:if> if no ThenViewHelper was found
  * @api
  */
 protected function renderThenChild()
 {
     if (TRUE === $this->isFrontendContext()) {
         $GLOBALS['TSFE']->no_cache = 1;
     }
     return parent::renderThenChild();
 }