/** Display output of TSunic * * Call this function to display the output of TSunic. * If you call this function from an ajax request, it will return xml output * * @param string $template * Request output of certain template only * * @return bool */ public function display($template = false) { // validate template if (empty($template)) { $template = $this->Input->get('tmpl'); // is tmpl? if (empty($template)) { $template = '$$$html'; } } // display templates if (!$this->isAjax()) { $this->Tmpl->display($template); } else { $this->Tmpl->responseAjax(); } return true; }