request->isPjax) { throw new \ErrorException (); return $this->renderPartial ( 'forschung' ); } else { return $this->render ( 'forschung' ); } } } public function actionLehre() { { if (Yii::$app->request->isPjax) { throw new \ErrorException (); return $this->renderPartial ( 'lehre' ); } else { return $this->render ( 'lehre' ); } } } public function actionIndex() { return $this->render ( 'index', [ 'counts' => "", 'contentleft' => "", 'contentright' => "", 'news' => "", 'totalRecords' => "", 'totalSamples' => "", 'totalEnviroSamples' => "", 'totalVouchers' => "", 'totalSpecies' => "", 'nbMembers'=>"" ] ); } public function getCounts() { } function getNews() {} public function actionFeedback() {} }