public function actionAdmin($fdm2_id) { $model = new Fdm3Dimension3('search'); $scopes = $model->scopes(); if (isset($scopes[$this->scope])) { $model->{$this->scope}(); } $model->unsetAttributes(); if (isset($_GET['Fdm3Dimension3'])) { $model->attributes = $_GET['Fdm3Dimension3']; } $model->fdm3_fdm2_id = $fdm2_id; $fdm2 = Fdm2Dimension2::model()->findByPk($fdm2_id); $this->render('admin', array('model' => $model, 'fdm2' => $fdm2)); }