A
A
Artcifra2016-06-08 10:02:45
Yii
Artcifra, 2016-06-08 10:02:45

How to configure urlManager in Yii 1.xx to add UTM tags to url?

How to write rules in urlManager so
that you can add any Get variables at the end of the request?
For example, for Captcha, the system says that you can make a request
www.site.com/subscribers/default/captcha/v
and such
www.site.com/subscribers/default/captcha/v/?refres...
I want to do the same
www. site.com/page/123
and
www.site.com/page/123/?zzz=1231&xxxx=23
now there is such a rule
'<controller:page>/<id:\d+>/' => 'page/id/',
how to add or change it?
Thank you

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Kirill Arutyunov, 2016-06-08
@arutyunov

And what exactly is the problem? You open the link /page/123/?zzz=234&xxx=543 and see what you have in $_GET.

M
Maxim Timofeev, 2016-06-08
@webinar

'subscribers/default/captcha/v'=>'subscribers/default/captcha'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question