public function setData($key = null, $value = null) { if (is_array($key)) { $this->data = array_merge($this->data, $key); } else { $this->data[$key] = $value; } parent::setData($this->data); }
/** * */ protected function send() { // if (empty($this->response)) { // $isViewNotRendered = !empty($this->view) && !$this->view->isRendered(); // if ($isViewNotRendered) { // $this->getDefaultHTTPResponse(); // $this->response->setData($this->view->render()); } } if (!empty($this->response)) { $this->response->send(); } return $this->response; }
/** * Sets data to display * @param $html */ public function setData($html = '') { $this->content = $html; parent::setData($html); }