protected function findModelByUUID($uuid)
    {
        if (($model = Article::findOne(['uuid' => $uuid])) != null) {
            return $model;
        }
        throw new NotFoundHttpException(Yii::t('yii', 'The requested page does not exist'));
    }
protected function findModelByUUID($uuid)
    {
        if (($model = Article::findOne(['uuid' => $uuid])) != null) {
            return $model;
        }
        throw new NotFoundHttpException(Yii::t('yii', 'The requested page does not exist'));
    }
protected function findModelByUUID ( $ uuid ) { if ( ( $ model = Article :: findOne ( [ 'uuid' => $ uuid ] ) ) != null ) { return $ model ; } throw new NotFoundHttpException ( Yii :: t ( 'yii' , 'The requested page does not exist' ) ) ; }
Finds the Article model based on its primary key value.
If the model is not found, a 404 HTTP exception will be thrown.

@param string $uuid

@return Article the loaded model
@throws NotFoundHttpException if the model cannot be found
Finds the Article model based on its primary key value . If the model is not found a 404 HTTP exception will be thrown .