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


PHP Controller_Base::after方法代码示例

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


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

示例1: after

 public function after($response)
 {
     $response = parent::after($response);
     $href = \Arr::get($this->sidebar, '0.items.0.href', false);
     if ($href != false) {
         return \Response::redirect($href);
     }
     return $response;
 }
开发者ID:soundintheory,项目名称:fuel-cmf,代码行数:9,代码来源:dashboard.php

示例2: after

 public function after()
 {
     if ($this->auto_render) {
         $styles = array('admin.css');
         $scripts = array();
         $this->template->styles = array_merge($styles, $this->template->styles);
         $this->template->scripts = array_merge($scripts, $this->template->scripts);
     }
     parent::after();
 }
开发者ID:ryross,项目名称:kobase,代码行数:10,代码来源:base.php

示例3: after

 public function after()
 {
     if ($this->_user) {
         $user = $this->_user->as_array();
         $roles = $this->_user->roles->find_all();
         foreach ($roles->as_array() as $role) {
             $user['roles'][] = $role->as_array();
         }
         $user['last_login'] *= 1000;
         unset($user['password']);
     } else {
         $user = NULL;
     }
     $this->json(array('message' => $this->_message, 'user' => $user));
     parent::after();
 }
开发者ID:ragchuck,项目名称:ra-Log,代码行数:16,代码来源:auth.php

示例4: after

 /**
  * Assigns the template [View] as the request response.
  */
 public function after()
 {
     if (!$this->is_remote()) {
         $controller = Request::$initial->controller();
         $action = Request::$initial->action();
         View::bind_global('controller', $controller);
         $layout = View::factory('layout');
         $layout->set('title', __(ucfirst($controller)));
         $layout->set('subtitle', __(ucfirst($action)));
         $nav_items_left = array(array('href' => "#!/dashboard", 'text' => __("Dashboard"), 'active' => $controller == 'dashboard', 'class' => "js-dashboard"), array('href' => "#!/profile", 'text' => __("System profile"), 'active' => $controller == 'profile', 'class' => "js-profile"));
         $layout->bind('nav_items_left', $nav_items_left);
         $nav_items_right = array(array('href' => '#', 'text' => __("Config"), 'dropdown' => array(array('href' => '#', 'icon' => 'user', 'text' => __("Login"), 'class' => 'js-login'), array('href' => '#', 'icon' => 'retweet', 'text' => __("Refresh Data"), 'class' => 'js-import-start'))));
         $layout->bind('nav_items_right', $nav_items_right);
         $stats = array((microtime(TRUE) - KOHANA_START_TIME) * 1000, (memory_get_usage() - KOHANA_START_MEMORY) / 1048576, count(get_included_files()));
         $layout->set('stats', vsprintf('%3$d files using %2$.1f MB in %1$.0fms', $stats));
         $layout->content = $this->template->render();
         $this->response->body($layout->render());
     } else {
         $this->response->body($this->template->render());
     }
     parent::after();
 }
开发者ID:ragchuck,项目名称:ra-Log,代码行数:25,代码来源:template.php

示例5: after

 public function after()
 {
     $this->template->style[] = $this->__CSS__ . 'deals.css';
     parent::after();
 }
开发者ID:ChrisCov,项目名称:HUKD,代码行数:5,代码来源:Deals.php

示例6: after

 public function after()
 {
     // enable Browser caching
     $this->enable_browser_caching();
     parent::after();
 }
开发者ID:ragchuck,项目名称:ra-Log,代码行数:6,代码来源:i18n.php

示例7: after

 public function after()
 {
     parent::after();
 }
开发者ID:adrianpl20,项目名称:oop,代码行数:4,代码来源:Auth.php


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