public function after() { if ($this->request->response instanceof View_Layout) { if (Request::$is_ajax) { // Display only the page content for AJAX requests $this->request->response->layout = FALSE; } $this->request->response = $this->request->response->render(); } return parent::after(); }
public function after() { $this->template->sidebar = Widget::factory()->add(array('accountstatus', 'ad', 'minute', 'search', 'following', 'followers', 'favphotos', 'categories', 'help', 'tags', 'editorial')); parent::after(); }