public function actionPaymentDetail($id) { $model = new SalePayment('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['SalePayment'])) { $model->attributes = $_GET['SalePayment']; } $this->renderPartial('sale_payment', array('model' => $model, 'id' => $id)); }