request->isPjax) { throw new \ErrorException (); return $this->renderPartial ( 'mockup' ); } else { return $this->render ( 'mockup' ); } } } public function actionMockup_search() { { if (Yii::$app->request->isPjax) { throw new \ErrorException (); return $this->renderPartial ( 'mockup_search' ); } else { return $this->render ( 'mockup_search' ); } } } public function actionMockup_searchresults_b() { { if (Yii::$app->request->isPjax) { throw new \ErrorException (); return $this->renderPartial ( 'mockup_searchresults_b' ); } else { return $this->render ( 'mockup_searchresults_b' ); } } } public function actionMockup_consortium() { { if (Yii::$app->request->isPjax) { throw new \ErrorException (); return $this->renderPartial ( 'mockup_consortium' ); } else { return $this->render ( 'mockup_consortium' ); } } } public function actionMockup_partner() { { if (Yii::$app->request->isPjax) { throw new \ErrorException (); return $this->renderPartial ( 'mockup_partner' ); } else { return $this->render ( 'mockup_partner' ); } } } public function actionIndex() { $news = WikiAPI::getNewsMembers(); return $this->render ( 'index', [ 'news' => $news ] ); } }