mirocow\eav\admin\controllers\AttributeController::findModel PHP Method

findModel() protected method

If the model is not found, a 404 HTTP exception will be thrown.
protected findModel ( integer $id ) : EavAttribute
$id integer
return mirocow\eav\models\EavAttribute the loaded model
    protected function findModel($id)
    {
        if (($model = EavAttribute::findOne($id)) !== null) {
            return $model;
        } else {
            throw new NotFoundHttpException('The requested page does not exist.');
        }
    }