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