Need Help Tp Pass Arguments To Controller

Hi,

First sorry for mispelling the topic title.

I need to pass the values to the contorller,

I had passing the query string to the controller like ,

localhost/sample/index.php?r=Example/Test&id=12&name=john&gender=male

it is working,

Any idea to pass the values to contoller like,

localhost/sample/index.php?r=Example/Test&12&john&male

Please provide your suggestions.

Hi,

u have to change URL manager in main.php

Its a bad idea. URI string is not supposed to be used this way. Consider using seo-friendly urls like example/test/12/john/male.

You can find more info on that in documentation, section Url management