예제 #1
0
 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $this->pageTitle = Yii::t('titles', 'NEWS_ADMIN');
     $this->layout = '//layouts/header_user';
     $model = new Payments('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Payments'])) {
         $model->attributes = $_GET['Payments'];
     }
     $this->render('admin', array('model' => $model));
 }
예제 #2
0
 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $model = new Payments('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Payments'])) {
         $model->attributes = $_GET['Payments'];
     }
     $this->render('admin', array('model' => $model));
 }