Exemplo n.º 1
0
 /**
  * @param ImageAdapter|string $content
  * @return \Phalcon\Http\ResponseInterface|void
  */
 public function setContent($content)
 {
     if ($content instanceof ImageAdapter) {
         $this->setContentType($content->getMime());
         $content = $content->render();
     }
     parent::setContent($content);
 }
Exemplo n.º 2
0
 /**
  * @param string|Template $content
  * @return \Phalcon\Http\ResponseInterface|void
  */
 public function setContent($content)
 {
     $this->setContentType('application/xml');
     parent::setContent($content);
 }
Exemplo n.º 3
0
 /**
  * @param string|Template $content
  * @return \Phalcon\Http\ResponseInterface|void
  */
 public function setContent($content)
 {
     $this->setContentType('application/javascript');
     parent::setContent($content);
 }
Exemplo n.º 4
0
 /**
  * @param string|Template $content
  * @return \Phalcon\Http\ResponseInterface|void
  */
 public function setContent($content)
 {
     $this->setContentType('text/css');
     parent::setContent($content);
 }