3 ms·
Nice little framework, only 90 lines of code. Just a minor complaint about the dispatcher syntax: Array('^\/article\/([a-zA-Z0-9_]+)\/?$', 'regex', 'Artic
by kijinbear 16y ago
Nice little framework, only 90 lines of code.
Just a minor complaint about the dispatcher syntax:
Array('^\/article\/([a-zA-Z0-9_]+)\/?$', 'regex', 'ArticleHandler')
Those backslashes look clunky. Something as commonly used as a forward slash in a URI shouldn't need to be escaped. Quick fix: use something else as a delimiter, such as #, in line 45. (It should be a character that never occurs in a valid URI on the server side. # is a reasonable choice because the fragment never gets passed to the server.)