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 -

Python Tornado package error when running server -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -