PHP Classes

File: test/js/out3.txt

Recommend this page to a friend!
  Classes of Nikos M.   Dromeo PHP Router Library   test/js/out3.txt   Download  
File: test/js/out3.txt
Role: Documentation
Content type: text/plain
Description: Documentation
Class: Dromeo PHP Router Library
Route HTTP requests to functions with URL patterns
Author: By
Last change: v.1.2.0 in progress

* onGroup method to group routes under common (literal) prefix (in progress)
* handle edge case in makePattern
* original matched extracts contain same defaults (if given)
* fix typo in PHP,JS in clearRoute
* update tests
Date: 1 year ago
Size: 866 bytes
 

Contents

Class file image Download
Dromeo.VERSION = 1.2.0 Default Handler { route: '/foo/user/id', method: '*', pattern: '/foo/{:user}/{:id}', fallback: false, data: { user: 'user', id: 'id', ORIG: { user: 'USER', id: 'ID' } }, route_original: '/FOO/USER/ID' } Default Handler { route: '/foo/foo/id', method: '*', pattern: '/foo/{:user}/{:id}', fallback: false, data: { user: 'foo', id: 'id', ORIG: { user: 'Foo', id: 'ID' } }, route_original: '/FOO/Foo/ID' } Default Handler { route: '/foo/user-user', method: '*', pattern: '/foo{/%ALPHA%-%ALPHA%:user(2)}', fallback: false, data: { user: 'user', ORIG: { user: 'User' } }, route_original: '/FOO/USER-User' } Default Handler { route: '/foo/foo-foo', method: '*', pattern: '/foo{/%ALPHA%-%ALPHA%:user(2)}', fallback: false, data: { user: 'foo', ORIG: { user: 'fOO' } }, route_original: '/FOO/Foo-fOO' }