controllers/AdminController.php
public function actionImages($id)
    {
        $gallery = $this->findModel($id);

        $searchModel  = $this->module->manager->createGalleryImageSearch();
        $dataProvider = $searchModel->search($_GET, $id);

        return $this->render('image/index', [
            'gallery' => $gallery,
            'dataProvider' => $dataProvider,
            'searchModel'  => $searchModel,
        ]);
    }
public function actionImages($id)
    {
        $gallery = $this->findModel($id);

        $searchModel  = $this->module->manager->createGalleryImageSearch();
        $dataProvider = $searchModel->search($_GET, $id);

        return $this->render('image/index', [
            'gallery' => $gallery,
            'dataProvider' => $dataProvider,
            'searchModel'  => $searchModel,
        ]);
    }
public function actionImages ( $ id ) { $ gallery = $ this -> findModel ( $ id ) ; $ searchModel = $ this -> module -> manager -> createGalleryImageSearch ( ) ; $ dataProvider = $ searchModel -> search ( $ _GET , $ id ) ; return $ this -> render ( 'image/index' , [ 'gallery' => $ gallery , 'dataProvider' => $ dataProvider , 'searchModel' => $ searchModel , ] ) ; }
Lists all Gallery images models.

@param $id Gallery id
@return mixed
Lists all Gallery images models .