Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function delete_post() {
- $post_id = $this->input->post('post_id');
- if( $this->Posts_model->delete_post( $post_id ) ) {
- echo 'success';
- } else {
- echo 'Failed to delete blog item, please try again later.';
- }
- exit();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement