Ejemplo n.º 1
0
 public function __construct()
 {
     parent::__construct();
     $this->_header = 'home/layouts/header';
     $this->_content = 'result_view';
     $this->_footer = 'home/layouts/footer';
 }
Ejemplo n.º 2
0
 public function hydrate($data)
 {
     //Couchdb-Lucene doesn't by default send content-type
     if ($data instanceof \phpcouch\http\HttpResponse) {
         $data->setHeader('Content-type', 'application/json');
     }
     return parent::hydrate($data);
 }
Ejemplo n.º 3
0
 /**
  * Returns the static model of the specified AR class.
  * Please note that you should have this exact method in all your CActiveRecord descendants!
  * @param string $className active record class name.
  * @return WViewResult the static model class
  */
 public static function model($className = __CLASS__)
 {
     return parent::model($className);
 }