Example #1
0
 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);
 }
Example #2
0
 /**
  *
  */
 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;
 }
Example #3
0
 /**
  * Sets data to display
  * @param $html
  */
 public function setData($html = '')
 {
     $this->content = $html;
     parent::setData($html);
 }