php - yii2 framework: Controller/Action url & without parameters -


in application , have admincontroller actionupdate, in yii path becomes admin/update. in order users info , use following path admin/update?id=10 10 empid.

is there way same thing without id part of path, i.e. want path admin/update? instead of (admin/update?id=10). don't need user want see id values.

thank you!

you can send data using post method instead of get

with of javascript use hidden form post method , input field. onclick of update button set id input field , submit form. id in controller's action without showing in url


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -