Ejemplo n.º 1
0
 protected function findAnswerListModel($answer_list_id)
 {
     if (($model = AnswerList::findOne($answer_list_id)) !== null) {
         return $model;
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
 }