Welcome Guest, Not a member yet? Register   Sign In
when I set routes with add and post, It's not work

(This post was last modified: 09-09-2021, 10:11 AM by asrahi.)

(09-07-2021, 12:48 PM)ikesela Wrote: better use 'get' instead 'add' , so router know what to do, not guessing what to do using 'add'

* from CI documentation: it is recommended to always use the HTTP-verb-based routes

Thank you! I'll use 'get'
Actually I can't understand well documentation, bcz I can't speak english well ;(

(09-07-2021, 12:58 PM)kilishan Wrote: Using `add` will make the route available across ALL verbs (get, post, etc). It is always better to specify the exact verb you want used so that there's no unintended actions happening when a different verb gets used. While there's a very small chance that could form a security issue, it does cause issues like you were just seeing, also.

Thank you!
I wonder, why the 'post' (written explicitly) can't has priority? even I set attribute of priority

Messages In This Thread
RE: when I set routes with add and post, It's not work - by asrahi - 09-09-2021, 10:05 AM

Theme © iAndrew 2016 - Forum software by © MyBB