public function actionAdminAjax($ccmp_id) { $model4grid = new CcbrBranch('search'); $scopes = $model4grid->scopes(); if (isset($scopes[$this->scope])) { $model4grid->{$this->scope}(); } $model4grid->unsetAttributes(); $model4grid->ccbr_ccmp_id = $ccmp_id; if (isset($_GET['CcbrBranch'])) { $model4grid->attributes = $_GET['CcbrBranch']; } $this->renderPartial("_branch_grid", array('model4grid' => $model4grid, 'ccmp_id' => $ccmp_id)); }