Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

codeigniter 4 delete redirect with data

// codeigniter 4 delete with redirect data
public function deletePet($id) {
 $pet = new Pets(); // Model
 $pet->delete($id); // delete data using id
        
 return redirect()->to('/user/pets')->with('success', 'Pet deleted successfully');
}
 
PREVIOUS NEXT
Tagged: #codeigniter #delete #redirect #data
ADD COMMENT
Topic
Name
4+7 =