Esempio n. 1
0
 public function actionNormal()
 {
     $params = array();
     $model = new OrderProduct('search_pdf');
     if (!empty($_GET['OrderProduct'])) {
         $model->attributes = $_GET['OrderProduct'];
     }
     if (isset($_GET['orderid'])) {
         $params['orderid'] = $_GET['orderid'];
     }
     $dataProvider = $model->search_pdf($params);
     $this->render('index', array('dataProvider' => $dataProvider, 'model' => $model));
 }