Save function |
Following the tutorial in the guide. The save function can insert or update. But using update will make an error when you have an is_unique rule in the model.
Controller News.php: PHP Code: $data = [ NewsModel.php: PHP Code: protected $validationRules = [ Ok, I think I found the error: https://codeigniter4.github.io/CodeIgnit...aceholders |
Messages In This Thread |
Save function - by edica - 10-26-2019, 10:32 AM
RE: Save function - by kilishan - 10-26-2019, 08:32 PM
RE: Save function - by edica - 10-28-2019, 08:15 AM
RE: Save function - by kilishan - 10-28-2019, 08:33 AM
RE: Save function - by edica - 10-29-2019, 05:37 AM
|