예제 #1
0
 public function actionIndex()
 {
     $model = new ConsumerLog('search');
     $model->unsetAttributes();
     $amount = ConsumerLog::model()->getAmount();
     if ($_GET['ConsumerLog']) {
         $model->attributes = $_GET['ConsumerLog'];
         /* var_dump($_GET);
            exit;*/
         $amount = ConsumerLog::model()->getAmount($_GET['ConsumerLog']);
     }
     $names = Store::model()->getName();
     $this->render('index', ['model' => $model, 'names' => $names, 'amount' => $amount]);
 }