public function actionView($id)
    {

        $photos = GalleryPhoto::find()->where(['gallery_id' => $id])->orderBy('name')->all();

        return $this->render('view', [
            'model' => $this->findModel($id),
            'photos' => $photos,
        ]);
    }
public function actionView($id)
    {

        $photos = GalleryPhoto::find()->where(['gallery_id' => $id])->orderBy('name')->all();

        return $this->render('view', [
            'model' => $this->findModel($id),
            'photos' => $photos,
        ]);
    }
public function actionView ( $ id ) { $ photos = GalleryPhoto :: find ( ) -> where ( [ 'gallery_id' => $ id ] ) -> orderBy ( 'name' ) -> all ( ) ; return $ this -> render ( 'view' , [ 'model' => $ this -> findModel ( $ id ) , 'photos' => $ photos , ] ) ; }
Displays a single Gallery model.
@param string $id
@return mixed
Displays a single Gallery model .