/**
  * Displays a single Packages model.
  * @param integer $id
  * @return mixed
  */
 public function actionView($id)
 {
     $model = $this->findModel($id);
     $this->title = $model->name;
     $searchModel = new ListsSearch();
     $dataProvider = $searchModel->search(array_merge(['products_packages_id' => '1'], Yii::$app->request->queryParams));
     return $this->render('view', ['model' => $model, 'searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }
 /**
  * Lists all Lists models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new ListsSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }