Welcome Guest, Not a member yet? Register   Sign In
Routing question: possible to create a catch-all when not calling a function?
#1

[eluser]Fabdrol[/eluser]
Hi guys.

I've got the following methods in my "Search" controller.:

Code:
search/index => search homepage
search/web ($term) => web results
search/images ($term) => images results
search/news ($term) => news results

I want a route to catch everything behind "search/" and route it to search/web. So when someone calls search/anything, it gets routed, but not when someone calls just "search" or "search/web/term" or "search/images/term" or "search/news/term".

I might sound a bit unclear, but I hope you guys understand my question.

Thanks in advance!


Messages In This Thread
Routing question: possible to create a catch-all when not calling a function? - by El Forum - 10-05-2009, 09:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB