コード例 #1
0
ファイル: account.php プロジェクト: reith2004/admin
 public function delete_delete($id = null)
 {
     // Delete the Account
     $response = API::delete(array('account', $id));
     // Handle response codes other than 200 OK
     if (!$response->success) {
         return Event::first($response->code);
     }
     // Add success notification
     Notification::success('Successfully deleted account');
     return Redirect::to(prefix('admin') . 'accounts');
 }
コード例 #2
0
ファイル: page.php プロジェクト: reith2004/admin
 public function delete_delete($slug = null)
 {
     // Delete the Page
     $response = API::delete(array('page', $slug));
     // Handle response codes other than 200 OK
     if (!$response->success) {
         return Event::first($response->code);
     }
     // Add success notification
     Notification::success('Successfully deleted page');
     return Redirect::to(prefix('admin') . 'pages');
 }