开发者

Filter results via selectbox!

开发者 https://www.devze.com 2023-02-20 06:52 出处:网络
How can I filter Results by County,District,City with dropdown select. Is there a way to do it in Cake way, because currently I\'m doing it classic way, by passing Id 开发者_运维问答to url, like:

How can I filter Results by County,District,City with dropdown select.

Is there a way to do it in Cake way, because currently I'm doing it classic way, by passing Id 开发者_运维问答to url, like:

/sort/county_id/1/district_id/5

But this is very bad hack, because I have to explode $this->here and not good thing. I don't know if there is uri class like in codeigniter, so I can play with $this->uri->segment().

In fact my problem is that I need to see if isset then pass it.


Have you considered named parameters?

Add/remove Cake named URL parameter for a link

0

精彩评论

暂无评论...
验证码 换一张
取 消