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


PHP Controller_Template::after方法代码示例

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


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

示例1: after

 function after()
 {
     if (class_exists('DebugToolbar')) {
         echo DebugToolbar::render();
     }
     return parent::after();
 }
开发者ID:halkeye,项目名称:tops,代码行数:7,代码来源:admin.php

示例2: after

 /**
  * After action
  */
 public function after()
 {
     $this->template->legend = HTML::chars(__($this->config_mod['b_menu']['heading'])) . SEPARATOR . HTML::chars($this->title);
     $this->template->v_nav_top = View::factory('backend/v_nav_top');
     $this->template->v_nav_left = View::factory('backend/v_nav_left', ['panels' => Module::get_panels(), 'current' => $this->config_mod['cms_module']]);
     parent::after();
 }
开发者ID:eok8177,项目名称:shopCMS,代码行数:10,代码来源:Backend.php

示例3: after

 public function after()
 {
     if (!isset($this->template->heading)) {
         $this->template->heading = ucfirst($this->request->controller());
     }
     if (!isset($this->template->subheading)) {
         $this->template->subheading = ucfirst($this->request->action());
     }
     $session_messages = $this->session->get_once('messages');
     if ($session_messages) {
         $this->template->messages = array_merge($session_messages, $this->template->messages);
     }
     $session_errors = $this->session->get_once('errors');
     if ($session_errors) {
         $this->template->errors = array_merge($session_errors, $this->template->errors);
     }
     /* Are you logged in? */
     $this->template->set_global('isLoggedIn', $this->auth->is_logged_in());
     $this->template->set_global('isVerifiedAccount', isset($this->isVerifiedAccount) ? $this->isVerifiedAccount : FALSE);
     /* store the user */
     $this->template->set_global('account', $this->auth->getAccount());
     if ($this->template->isLoggedIn) {
         $this->addMenuItem(array('url' => 'convention/checkout', 'title' => 'Purchase Tickets'));
         $this->addMenuItem(array('title' => 'My Account', 'url' => 'user'));
         if ($this->auth->hasPermission('admin')) {
             $this->addMenuItem(array('title' => 'Administration', 'url' => 'admin'));
         }
         $this->addMenuItem(array('url' => 'user/logout', 'title' => 'Logout'));
     }
     return parent::after();
 }
开发者ID:halkeye,项目名称:ecmproject,代码行数:31,代码来源:maintemplate.php

示例4: after

 /**
  * Unset current navigation item
  */
 public function after()
 {
     $key = array_search($this->_current_nav, $this->_config['menu']);
     if ($key) {
         $this->_config['menu'][$key] = NULL;
     }
     // If a submenu is defined
     if (isset($this->_config['submenu'][$this->_current_nav])) {
         // Unset current action sublink
         $key = array_search($this->request->action, $this->_config['submenu'][$this->_current_nav]);
         if ($key === FALSE) {
             // Match controler and action
             $key = array_search($this->request->controller . "/" . $this->request->action, $this->_config['submenu'][$this->_current_nav]);
             if ($key === FALSE) {
                 // Match controler only (if a submenu belong to many actions)
                 $key = array_search($this->request->controller, $this->_config['submenu'][$this->_current_nav]);
             }
         }
         if ($key) {
             $this->_config['submenu'][$this->_current_nav][$key] = NULL;
         }
         // Prepend current navigation path to all menu's actions
         foreach ($this->_config['submenu'][$this->_current_nav] as $key => $action) {
             if (!empty($action)) {
                 $this->_config['submenu'][$this->_current_nav][$key] = $this->_current_nav . '/' . $action;
             }
         }
     }
     parent::after();
 }
开发者ID:nagius,项目名称:kohana-admin,代码行数:33,代码来源:admin.php

示例5: after

 public function after($response)
 {
     if (empty($response) or !$response instanceof Response) {
         $response = \Response::forge(\Theme::instance()->render());
     }
     return parent::after($response);
 }
开发者ID:khoapossible,项目名称:vision_system,代码行数:7,代码来源:common.php

示例6: after

 /**
  * After action
  */
 public function after()
 {
     $this->template->breadcrumbs = $this->breadcrumbs;
     $v_go_previous = View::factory('frontend/v_go_previous');
     $this->template->set_global('v_go_previous', $v_go_previous);
     parent::after();
 }
开发者ID:eok8177,项目名称:shopCMS,代码行数:10,代码来源:Frontend.php

示例7: after

 public function after()
 {
     if ($this->template->body && is_string($this->template->body)) {
         $this->template->body = View::factory($this->template->body, $this->data, false);
     }
     parent::after();
 }
开发者ID:nathanharper,项目名称:divine-economy,代码行数:7,代码来源:controller.php

示例8: after

 public function after()
 {
     if (empty($this->template->content)) {
         $this->template->content = '';
     }
     parent::after();
 }
开发者ID:rhrn,项目名称:apirn,代码行数:7,代码来源:html.php

示例9: after

 /**
  * The after() method is called after your controller action.
  * In our template controller we override this method so that we can
  * make any last minute modifications to the template before anything
  * is rendered.
  */
 public function after()
 {
     if ($this->auto_render) {
         $this->template->styles = array_merge($this->config['global']['css_files'], $this->template->styles);
         $this->template->scripts = array_merge($this->config['global']['js_files'], $this->template->scripts);
     }
     parent::after();
 }
开发者ID:hbarroso,项目名称:Goworkat,代码行数:14,代码来源:base.php

示例10: after

 /**
  * Perform pre-render actions on website controller
  */
 public function after()
 {
     if ($this->internal_request) {
         $content = $this->template->content;
         $this->template = $content;
     }
     parent::after();
 }
开发者ID:vimofthevine,项目名称:kohana-cms,代码行数:11,代码来源:cms.php

示例11: after

 public function after($response)
 {
     $response = parent::after($response);
     // not needed if you create your own response object
     // do stuff
     return $response;
     // make sure after() returns the response object
 }
开发者ID:Adriaan420,项目名称:Leertaak5,代码行数:8,代码来源:measurements.php

示例12: after

 public function after()
 {
     if (is_object($this->template)) {
         $this->template->scripts = $this->scripts;
         $this->template->css = $this->css;
     }
     parent::after();
 }
开发者ID:artbypravesh,项目名称:morningpages,代码行数:8,代码来源:Project.php

示例13: after

 /**
  * Unset current navigation item
  */
 public function after()
 {
     $key = array_search($this->_current_nav, $this->_config['menu']);
     if ($key) {
         $this->_config['menu'][$key] = NULL;
     }
     parent::after();
 }
开发者ID:vimofthevine,项目名称:kohana-admin,代码行数:11,代码来源:admin.php

示例14: after

 public function after()
 {
     $referrer = Request::current()->referrer();
     if ($referrer === NULL or $_SERVER['HTTP_HOST'] != parse_url($referrer, PHP_URL_HOST)) {
         $referrer = URL::base();
     }
     $this->template->set('ASSETS', $this->assets)->set('BACK_URL', $referrer);
     parent::after();
 }
开发者ID:greor,项目名称:satin-spb,代码行数:9,代码来源:error.php

示例15: after

 public function after()
 {
     $this->template->styles = array_merge($this->template->styles, $this->theme_config['styles']);
     $this->template->scripts = array_merge($this->template->scripts, $this->theme_config['jscripts']);
     View::set_global(array('title' => !isset($this->template->title) ? $this->config->get('title_admin') : $this->template->title, 'theme_dir' => '/themes/' . $this->config->get('admin_theme') . '', 'user' => $this->user, 'error' => Session::instance()->get('error'), 'message' => Session::instance()->get('message'), 'admin_url' => $this->config->get('admin_url')));
     Session::instance()->set('message', '');
     Session::instance()->set('error', '');
     parent::after();
 }
开发者ID:upers,项目名称:kwartira.com,代码行数:9,代码来源:Admin.php


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