當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Template_Controller::_render方法代碼示例

本文整理匯總了PHP中Template_Controller::_render方法的典型用法代碼示例。如果您正苦於以下問題:PHP Template_Controller::_render方法的具體用法?PHP Template_Controller::_render怎麽用?PHP Template_Controller::_render使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Template_Controller的用法示例。


在下文中一共展示了Template_Controller::_render方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: _render

 /**
  * Overriding the render method gives us a single point to check that this page
  * is authorised.
  */
 public function _render()
 {
     if (!$this->page_authorised()) {
         $this->access_denied('page');
     }
     parent::_render();
 }
開發者ID:BirenRathod,項目名稱:indicia-code,代碼行數:11,代碼來源:indicia.php

示例2: _render

 /**
  * This will do all the actions required before rendering the template. 
  * Setting up the notifications and navigatiosn, working out what to return
  * based on what type of request it is etc. 
  */
 public function _render()
 {
     if (request::is_ajax()) {
         // if the view has been set, then only ever return the view html
         // if this view is set please make sure there are no redirect under it.
         if (isset($this->ajax['view'])) {
             header('content-type: text/html');
             echo $this->ajax['view'];
         } else {
             if ($this->notification->count()) {
                 $this->ajax['notifications'] = $this->notification->get();
             }
             header('content-type: application/json');
             echo json_encode($this->ajax);
         }
     } else {
         if ($this->notification->count()) {
             $this->template->notifications = View::factory('templates/notification', array('notifications' => $this->notification->get()));
         }
         $this->template->breadcrumbs = $this->breadcrumbs->get();
         $this->template->navigation = $this->navigation->display();
         $this->template->css_classes = $this->css_classes;
         parent::_render();
     }
 }
開發者ID:HIVE-Creative,項目名稱:spicers,代碼行數:30,代碼來源:base.php

示例3: _render

 public function _render()
 {
     if ($this->auto_render) {
         // Add styles
         $this->template->styles = array('userguide/media/css/print.css' => 'print', 'userguide/media/css/screen.css' => 'screen', 'userguide/media/css/kodoc.css' => 'screen', 'userguide/media/css/topline.css' => 'screen', 'userguide/media/css/shCore.css' => 'screen', 'userguide/media/css/shThemeDefault.css' => 'screen');
         // Add scripts
         $this->template->scripts = array('userguide/media/js/jquery-1.3.2.min.js', 'userguide/media/js/jquery.coda-slider-2.0.js', 'userguide/media/js/jquery.easing.1.3.js', 'userguide/media/js/kodoc.js', 'userguide/media/js/shCore.js', 'userguide/media/js/shBrushPhp.js');
     }
     return parent::_render();
 }
開發者ID:JamesKnott,項目名稱:kohana24-userguide,代碼行數:10,代碼來源:userguide.php


注:本文中的Template_Controller::_render方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。