示例#1
0
 public function after()
 {
     if ($this->auto_render === TRUE and !$this->_ajax) {
         $this->template->content = View::factory('template/admin')->set('content', $this->template->content)->bind('menu', $menu);
         if ($this->_current_user) {
             // Display these menu items as controller
             $menu = array('projects', 'users', 'logout');
         }
     }
     parent::after();
     // Delete any existing message cookie
     cookie::delete('message');
 }
示例#2
0
 public function after()
 {
     // Wrap the content in the contact sub-template
     $this->template->content = View::factory('contact/index')->set('content', $this->template->content);
     parent::after();
 }