Controller_Admin_Base::after PHP Метод

after() публичный Метод

Handles internal/external request-specific view settings
public after ( )
    public function after()
    {
        $content = $this->template->content;
        // If external request, insert into layout template
        if (!$this->_internal) {
            $view = isset($this->_view_map[$this->request->action]) ? $this->_view_map[$this->request->action] : $this->_view_map['default'];
            $this->template->content = View::factory($view)->set('menu', $this->_menu())->set('content', $content);
        } else {
            $messages = Message::instance()->get();
            $this->template = $messages . $content;
        }
        parent::after();
    }

Usage Example

Пример #1
0
 public function after()
 {
     if ($this->auto_render) {
         $styles = array('assets/css/horoscope.css' => 'screen');
         $this->template->styles = array_reverse(array_merge($this->template->styles, $styles));
     }
     parent::after();
 }
All Usage Examples Of Controller_Admin_Base::after