/**
  * Finds the AttachedFiles model based on its primary key value.
  * If the model is not found, a 404 HTTP exception will be thrown.
  * @param string $request_id
  * @param string $url
  * @return AttachedFiles the loaded model
  * @throws NotFoundHttpException if the model cannot be found
  */
 protected function findModel($request_id, $url)
 {
     if (($model = AttachedFiles::findOne(['request_id' => $request_id, 'url' => $url])) !== null) {
         return $model;
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
 }