Beispiel #1
0
 public function actionView()
 {
     $para = ['condition' => ['id' => $this->_requestIds]];
     $cacheId = XiiCacheId::run($para);
     $cacheId = $cacheId ? $cacheId : '';
     XiiResponse::run($this->_model->findAll($para), $cacheId);
 }
Beispiel #2
0
 public function actionView()
 {
     if ($this->_requestCurrent != 'GET') {
         XiiError::sendError(400);
         Yii::$app->end();
     }
     $para = ['condition' => ['id' => $this->_requestIds]];
     $cacheId = XiiCacheId::run($para);
     $cacheId = $cacheId ? $cacheId : '';
     XiiResponse::run($this->_model->findAll($para), $cacheId);
 }