Пример #1
0
 protected function findModel_user($id)
 {
     if (($model = ecommerceDataUser::findOne($id)) !== null) {
         return $model;
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
 }