![]() |
I just display the form and press enter without making any changes.
CodeIgniter\Database\Exceptions\DataException There is no data to update. Code: $model = new \App\Models\PageModel;
Hi, I had a similar problem. This was my problem and my solution; https://stackoverflow.com/questions/67747865/codeigniter-4-haschanged-i-was-expecting-no-change-but-haschanged-returns
Hope this may help you. (03-10-2022, 08:43 PM)spreaderman Wrote: Hi, I had a similar problem. This was my problem and my solution; https://stackoverflow.com/questions/67747865/codeigniter-4-haschanged-i-was-expecting-no-change-but-haschanged-returns Thank you
I had to remove the fill method for this to work with summernote.
Code: $data = $this->request->getPost(); and change to assign each post. Code: $page->title = $data['title']; (03-12-2022, 12:00 PM)frocco Wrote: I had to remove the fill method for this to work with summernote. You can use an array of keys PHP Code: $page->fill($this->request->getPost(['title', 'zone', '...etc']));
>>You can use an array of keys<<
Thank you, I did not know that. This resolves the error. |
Welcome Guest, Not a member yet? Register Sign In |