0

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.

flakerimi
  • 2,580
  • 3
  • 29
  • 49

1 Answers1

0

Have you considered named parameters?

Add/remove Cake named URL parameter for a link

Community
  • 1
  • 1
Amy Anuszewski
  • 1,843
  • 17
  • 30