Welcome Guest, Not a member yet? Register   Sign In
Route extension: default request
#5

[eluser]zauber[/eluser]
That's a pretty neat solution! I was thinking about attempting something like that, but eventually chose not to because in this case, I wanted to avoid hacking the core.

But you got me thinking. If you rewrote the show_404() function, to add a new type of hook ('pre_show_404'), that would open up a whole slew of tricks you could do. Like: 'my app can't handle this request, so hand it off to a completely different app'. ... Something to keep up the sleve.

Regarding the _remap function. I read about it, but don't see how it helps in this case. The router still needs to determine the controller on which to do the _remap(), right?


Messages In This Thread
Route extension: default request - by El Forum - 02-18-2008, 05:35 AM
Route extension: default request - by El Forum - 02-18-2008, 06:14 AM
Route extension: default request - by El Forum - 02-18-2008, 08:13 AM
Route extension: default request - by El Forum - 02-18-2008, 08:49 AM
Route extension: default request - by El Forum - 02-18-2008, 08:58 AM
Route extension: default request - by El Forum - 02-18-2008, 08:59 AM
Route extension: default request - by El Forum - 02-18-2008, 09:06 AM
Route extension: default request - by El Forum - 02-18-2008, 12:38 PM
Route extension: default request - by El Forum - 02-18-2008, 04:04 PM
Route extension: default request - by El Forum - 02-18-2008, 05:05 PM
Route extension: default request - by El Forum - 02-18-2008, 05:37 PM
Route extension: default request - by El Forum - 02-18-2008, 06:06 PM
Route extension: default request - by El Forum - 02-18-2008, 06:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB