Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function deleteImage()
- {
- $id = $this->input->post('idi');
- if( !empty( $id ) && is_numeric( $id ) )
- {
- unlink( base_url( $this->input->post('image') ) );
- $this->img->deleteImage( $id );
- }else{
- redirect( 'properties' );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement