Example #1
0
File: Pacote.php Project: schw/SGE3
 public function setItemProgramacaoPacote()
 {
     $ItemProgramacaoHasPacoteSearch = new ItemProgramacaoHasPacoteSearch();
     $itens = $ItemProgramacaoHasPacoteSearch->search(['idpacote' => $this->idpacote])->getModels();
     foreach ($itens as $key => $value) {
         array_push($this->itens, $value['itemProgramacao_iditemProgramacao']);
     }
 }
 /**
  * Lists all ItemProgramacaoHasPacote models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new ItemProgramacaoHasPacoteSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }