Hi,
I’m using UrlManager and trying to add new rule for this url /?TblProject[id_shop]=1&TblProject[id_category]=1. I would like to get something like: /shop/1/category/1.
How can I do this?
Thanks!
Hi,
I’m using UrlManager and trying to add new rule for this url /?TblProject[id_shop]=1&TblProject[id_category]=1. I would like to get something like: /shop/1/category/1.
How can I do this?
Thanks!
I have the same problem, who can help us?
Hi, sorry to bump this thread, but I have exactly the same need and can’t find how to do this.
These three tries fail to rewrite the URL and then give an error on CUrlManager.php(761) (urlencode() expects parameter 1 to be string, array given)
'servicios/<Tool[serviceId]:\d+>/maquinas'=>'tool/index',
'servicios/<Tool%5BserviceId%5D:\d+>/maquinas'=>'tool/index',
'servicios/<Tool\[serviceId\]:\d+>/maquinas'=>'tool/index',
Adding it with underscore doesn’t give any error but obviously doesn’t work either:
'servicios/<Tool_serviceId:\d+>/maquinas'=>'tool/index',