CodeIgniter Forums
Is there any way to send put,delete,patch request from forms? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Model-View-Controller (https://forum.codeigniter.com/forumdisplay.php?fid=10)
+--- Thread: Is there any way to send put,delete,patch request from forms? (/showthread.php?tid=82584)



Is there any way to send put,delete,patch request from forms? - tweenietomatoes - 07-27-2022

For example in Laravel blade templates you need to add
@method('PUT') ... in form.
For some frameworks you need to add something like: <input type="hidden" method="_delete" ...
Is there anything like that in CI4?



RE: Is there any way to send put,delete,patch request from forms? - kenjis - 07-27-2022

See https://codeigniter4.github.io/CodeIgniter4/incoming/methodspoofing.html