backend/controllers/UsersController.php
/**
     * Finds the UserFiles model based on its primary key value.
     * If the model is not found, a 404 HTTP exception will be thrown.
     * @param string $collaboration_id
     * @return \common\models\UserCollaborations the loaded model
     * @throws NotFoundHttpException if the model cannot be found
     * @throws ForbiddenHttpException if the model cannot be accessed
     */
Finds the UserFiles model based on its primary key value.
If the model is not found, a 404 HTTP exception will be thrown.
@param string $collaboration_id
@return \common\models\UserCollaborations the loaded model
@throws NotFoundHttpException if the model cannot be found
@throws ForbiddenHttpException if the model cannot be accessed
Finds the UserFiles model based on its primary key value . If the model is not found a 404 HTTP exception will be thrown . @param string $collaboration_id @return \ common \ models \ UserCollaborations the loaded model @throws NotFoundHttpException if the model cannot be found @throws ForbiddenHttpException if the model cannot be accessed
protected function findCollaboration($collaboration_id)
    {
        if (($model = UserCollaborationsSearch::findOne(['collaboration_id' => $collaboration_id])) !== null) {
            return $model;
        } else {
            throw new NotFoundHttpException('The requested page does not exist.');
        }
    }
protected function findCollaboration ( $ collaboration_id ) { if ( ( $ model = UserCollaborationsSearch :: findOne ( [ 'collaboration_id' => $ collaboration_id ] ) ) !== null ) { return $ model ; } else { throw new NotFoundHttpException ( 'The requested page does not exist.' ) ; } }
Finds the UserFiles model based on its primary key value.
Finds the UserFiles model based on its primary key value .