protected function OnOutput() { $vars = array('title' => $this->title, 'content' => $this->content, 'menu' => $this->menu, 'errors' => $this->errors, 'data' => $this->data); $page = $this->Template('admin', $vars); if (JL::ex('ajax', 1)) { $page = ''; } echo $page; }
protected function OnOutput() { $vars = array('title' => $this->title, 'content' => $this->content, 'menu' => $this->menu, 'errors' => $this->errors, 'data' => $this->data); if (JL::ex('type', 'ajax') || JL::ex('type', 'form')) { $page = ''; } else { $page = $this->Template('main', $vars); } echo $page; }