stijnh
(Iam)
1
Hello,
I use the custom url’s with the urlManager
When I go to this page, I get a list of books, from the subcategorie in the category schoolbooks
http://www.myurl.com/cat/schoolbooks/49-mathematics
No I want to add filtering, like the state of the article, the ordering, the binding, …
So I thought to add params, like this:
http://www.myurl.com/cat/schoolbooks/49-mathematics/sort/0/condition/1/binding/0/province/0/filter/0/order
But when I do this, I got an error “Object not found”, is there a way I can add params and custom URL’s?
zaccaria
(Matteo Falsitta)
2
It looks that the rule that create the first url fails to decode when you create the second.
Try to work on the rule in order to work correctly even in the second case. You should get an url like
http://www.myurl.com/cat/49-mathematics/sort/0/condition/1/binding/0/province/0/filter/0/order
stijnh
(Iam)
3
I want an url with al the base params (cat/schoolbooks/49-mathematics)
mdomba
(Maurizio Domba Cerin)
5
can you post your URL rules?
stijnh
(Iam)
6
'cat/<categoryTitle>/<subcategory:\d+>-<subcategoryTitle>' => 'categories/show',
'cat/<category:\d+>-<title>' => 'categories/show',
'uitgever/<id:\d+>-<name>' => 'item/publisherlist',
'auteur/<id:\d+>-<name>' => 'item/authorlist',
mdomba
(Maurizio Domba Cerin)
7
I cannot test right now as I have time only to check new posts… but try to add * to the first rule like
'cat/<categoryTitle>/<subcategory:\d+>-<subcategoryTitle>/*' => 'categories/show',
that should cover all additional params