Advertisement
kocuogebz

Controller

Jun 4th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1. public function delete_post() {
  2.        
  3.     $post_id = $this->input->post('post_id');
  4.        
  5.     if( $this->Posts_model->delete_post( $post_id ) ) {
  6.         echo 'success';
  7.     } else {
  8.         echo 'Failed to delete blog item, please try again later.';
  9.     }
  10.        
  11.     exit();
  12.        
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement