当前位置: 首页>>代码示例>>PHP>>正文


PHP CController::processOutput方法代码示例

本文整理汇总了PHP中CController::processOutput方法的典型用法代码示例。如果您正苦于以下问题:PHP CController::processOutput方法的具体用法?PHP CController::processOutput怎么用?PHP CController::processOutput使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CController的用法示例。


在下文中一共展示了CController::processOutput方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: render

 /**
  * Render full HTML page. A controller/action that uses XPage to render page
  * can render its view in Yii's standard way or render a constructed page with a
  * main view and multiple sidebars of left and right of the main content.
  *
  * @param bool $return
  *
  * @return mixed|string
  */
 public function render($return = false)
 {
     $this->registerAssets();
     /**
      * re-implement the render() of CController but not firing events
      * for beforeRender and afterRender as they are not really useful
      */
     $this->renderColumn('left');
     $this->renderColumn('main');
     $this->renderColumn('right');
     $content = '';
     foreach ($this->views['main'] as $renderedInfo) {
         $content .= "\n" . $renderedInfo['content'];
     }
     $this->views['content'] = $content;
     if (($layoutFile = $this->controller->getLayoutFile($this->controller->layout)) !== false) {
         $output = $this->controller->renderFile($layoutFile, $this->views, true);
     } else {
         $leftContent = '';
         foreach ($this->views['left'] as $renderedInfo) {
             $leftContent = "\n" . $renderedInfo['content'];
         }
         $rightContent = '';
         foreach ($this->views['right'] as $renderedInfo) {
             $rightContent = "\n" . $renderedInfo['content'];
         }
         $output = $leftContent . "\n" . $content . "\n" . $rightContent;
     }
     $output = $this->controller->processOutput($output);
     if ($return) {
         return $output;
     } else {
         echo $output;
     }
 }
开发者ID:hung5s,项目名称:yap,代码行数:44,代码来源:XPage.php

示例2: processOutput

 public function processOutput($output)
 {
     if (!Yii::app()->request->isAjaxRequest) {
         if (!preg_match("#{copyright}#", $output)) {
             die(Yii::t('app', 'NO_COPYRIGHT'));
         }
     }
     $licens = Yii::t('app', 'COPYRIGHT', array('{year}' => date('Y')));
     $output = str_replace("{copyright}", $css . $licens, $output);
     return parent::processOutput($output);
 }
开发者ID:buildshop,项目名称:bs-common,代码行数:11,代码来源:Controller.php

示例3: processOutput

 /**
  * Действие обработки вывода:
  *
  * @param string $output - буфер для вывода
  *
  * @return string родительский вызов processOutput
  **/
 public function processOutput($output)
 {
     ContentType::setHeader($this->headerTypeId);
     return parent::processOutput($output);
 }
开发者ID:sherifflight,项目名称:yupe,代码行数:12,代码来源:Controller.php

示例4: processOutput

 public function processOutput($output)
 {
     return $this->processDynamic(parent::processOutput($output));
 }
开发者ID:rosko,项目名称:Tempo-CMS,代码行数:4,代码来源:Controller.php


注:本文中的CController::processOutput方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。