當前位置: 首頁>>代碼示例>>PHP>>正文


PHP BaseController::httpNotFound方法代碼示例

本文整理匯總了PHP中BaseController::httpNotFound方法的典型用法代碼示例。如果您正苦於以下問題:PHP BaseController::httpNotFound方法的具體用法?PHP BaseController::httpNotFound怎麽用?PHP BaseController::httpNotFound使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在BaseController的用法示例。


在下文中一共展示了BaseController::httpNotFound方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: destroy

 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     if ($this->group_check->destroy($id)) {
         return BaseController::httpNotFound();
     } else {
         $this->group_gestion->delete($id);
         return BaseController::httpOk();
     }
 }
開發者ID:Reval63,項目名稱:projet_photo,代碼行數:15,代碼來源:GroupController.php

示例2: destroy

 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy()
 {
     if ($this->delete_validation->fails()) {
         return BaseController::httpError($this->delete_validation);
     } elseif (!$this->friend_check->exist()) {
         return BaseController::httpNotFound();
     } else {
         $this->friend_gestion->destroy();
         return BaseController::httpOk();
     }
 }
開發者ID:Reval63,項目名稱:projet_photo,代碼行數:17,代碼來源:FriendController.php

示例3: destroy

 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     if ($this->comment_check->missing($id)) {
         return BaseController::httpNotFound();
     } else {
         $this->comment_gestion->destroy($id);
         return BaseController::httpOk();
     }
 }
開發者ID:Reval63,項目名稱:projet_photo,代碼行數:15,代碼來源:CommentController.php

示例4: friendsFeed

 public function friendsFeed($id)
 {
     if ($this->list_validation->fails()) {
         return BaseController::httpError($this->list_validation);
     } else {
         if ($this->post_check->missingUser($id)) {
             return BaseController::httpNotFound();
         } else {
             return BaseController::httpContent($this->post_gestion->friendsFeed($id), 'friends_posts');
         }
     }
 }
開發者ID:Reval63,項目名稱:projet_photo,代碼行數:12,代碼來源:PostController.php

示例5: destroy

 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy()
 {
     if ($this->vote_check->badVote()) {
         return BaseController::httpNotFound();
     } else {
         $this->vote_gestion->destroy();
         return BaseController::httpOk();
     }
 }
開發者ID:Reval63,項目名稱:projet_photo,代碼行數:15,代碼來源:VoteController.php

示例6: avatar

 public function avatar($id)
 {
     /*if($this->avatar_validation->fails())
     		{
     			return BaseController::httpError($this->avatar_validation);
     		}else*/
     if ($this->user_check->missing($id)) {
         return BaseController::httpNotFound();
     } else {
         $this->user_gestion->avatar($id);
         return BaseController::httpOk();
     }
 }
開發者ID:Reval63,項目名稱:projet_photo,代碼行數:13,代碼來源:UserController.php


注:本文中的BaseController::httpNotFound方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。