Welcome Guest, Not a member yet? Register   Sign In
Custom, database-driven 404 page -- can this be improved?
#8

[eluser]Colin Williams[/eluser]
Quote:For example, I have a portfolio controller with two functions: the index and item. If someone requests the URI /portfolio/something-else/ or requests /portfolio/item/item-that-does-not-exist, then I would have to redirect to /page/index/404, which would then change the URL in the browser. Or, I’d have to copy that page controller code into every new controller

Hrm.. I'd make the 404 stuff a library, then. Even though it performs something very similar to $page->index(), your other controllers are still handling the request and serving the 404, just via your library.


Messages In This Thread
Custom, database-driven 404 page -- can this be improved? - by El Forum - 07-14-2008, 11:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB