controllers/AdminController.php
protected function findModel($id)
    {
        $model = $this->module->manager->findGalleryById($id);

        if ($model === null) {
            throw new NotFoundHttpException('The requested page does not exist');
        }

        return $model;
    }
protected function findModel($id)
    {
        $model = $this->module->manager->findGalleryById($id);

        if ($model === null) {
            throw new NotFoundHttpException('The requested page does not exist');
        }

        return $model;
    }
protected function findModel ( $ id ) { $ model = $ this -> module -> manager -> findGalleryById ( $ id ) ; if ( $ model === null ) { throw new NotFoundHttpException ( 'The requested page does not exist' ) ; } return $ model ; }
Finds the Gallery model based on its primary key value.
If the model is not found, a 404 HTTP exception will be thrown.
@param  integer                    $id
@return \wolfguard\gallery\models\Gallery the loaded model
@throws NotFoundHttpException      if the model cannot be found
Finds the Gallery model based on its primary key value . If the model is not found a 404 HTTP exception will be thrown .