开发者

Filter results via selectbox!

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜