Esempio n. 1
0
 public function __construct()
 {
     parent::__construct();
     $this->_header = 'home/layouts/header';
     $this->_content = 'result_view';
     $this->_footer = 'home/layouts/footer';
 }
 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);
 }
Esempio 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);
 }