I have a url http://test.site.loc/profile/membership/view/id/1
> I do not know how to format it in such a way that if I type http://test.site.loc/profile/membership/view/1, it will direct the same url.
Please, help me.
相关问题
- Yii - Eliminate default controller ID for a module
- how to change csrf field id from YII_CSRF_TOKEN to
- Load balancing with Yii sessions
- Yii uploading pictures
- How to Auto Login and Redirect After Registration
相关文章
- Can you run console jobs from yii2-basic?
- How to do a bulk database insert in Yii2?
- Yii2 - check if the user is logged in view
- Call static method from a string name in PHP
- radioButtonList checked by default
- Postgres error: null value in column “id” - during
- Add column as link in CGridView
- yii : how to ajax update the cgridview
You can create your URL in 'URL Manager' like
which will route you to 'view' action and you can get 'id' with following code
and create your URL as follows