aFramework and the perfect 404
Published Wednesday, September 24, 2008 in aFramework
I just finished aFramework's brand new 404-handling (much simplified).
I used ALA's the perfect 404 as inspiration but wrote it all in PHP rather than inaccessible JS using document.write (as they do in the article (i guess so it works without any particular server-side language support)).
It includes all the 4 "states" described in the article and search-results based on either the requested URI or the actual search-term (if it's a search-engine referrer) are presented to the visitor.
I've tried to mimic the design of FF's error-page, I even use the same warning-icon located at chrome://global/skin/icons/warning-large.png (obivously not available outside FF).
A 404 is triggered in aFramework either from a Module in the current Controller (for example the article-module can trigger a 404 in case the requested article doesn't exist) or simply because the router can not find a route for the requested URI.
Laters






