Beispiel #1
0
 /**
  * Generate and apply container content in controller after application is initialized
  *
  * @param string $content
  * @return bool
  */
 public function applyInApp(&$content)
 {
     $blockContent = $this->_renderBlock();
     if ($blockContent === false) {
         return false;
     }
     if (Mage::getStoreConfig(Enterprise_PageCache_Model_Processor::XML_PATH_CACHE_DEBUG)) {
         $debugBlock = new Enterprise_PageCache_Block_Debug();
         $debugBlock->setDynamicBlockContent($blockContent);
         $this->_applyToContent($content, $debugBlock->toHtml());
     } else {
         $this->_applyToContent($content, $blockContent);
     }
     $subprocessor = $this->_processor->getSubprocessor();
     if ($subprocessor) {
         $contentWithOutNestedBlocks = $subprocessor->replaceContentToPlaceholderReplacer($blockContent);
     }
     $this->saveCache($contentWithOutNestedBlocks);
     return true;
 }