/** * Method to render the view. * * @return string The rendered view. * * @throws RuntimeException */ public function render() { $this->item = $this->model->getComment(); if ($this->getLayout() == null) { $this->setLayout('edit'); } $this->form = $this->model->getForm(); // Attachments $this->attachments = $this->model->getCommentAttachments(); $this->addToolbar(); return parent::render(); }
/** * Method to render the view. * * @return string The rendered view. * * @throws RuntimeException */ public function render() { $this->item = $this->model->getComment(); if ($this->getLayout() == null) { $this->setLayout('edit'); } if ($this->item) { $this->model->setIssueId($this->item->issue_id); } $this->issue_id = $this->model->getIssueId(); $this->issue_title = $this->model->getIssueTitle(); $this->form = $this->model->getForm(); $this->defaultTitle = JText::sprintf('COM_MONITOR_CREATE_COMMENT_TITLE', $this->issue_title); $this->attachments = $this->model->getCommentAttachments(); return parent::render(); }