OSDN Git Service

Merge branch 'master' of github.com:dannyvankooten/PHP-Router
authorDanny van Kooten <dannyvankooten@gmail.com>
Sat, 7 Apr 2012 11:37:58 +0000 (13:37 +0200)
committerDanny van Kooten <dannyvankooten@gmail.com>
Sat, 7 Apr 2012 11:37:58 +0000 (13:37 +0200)
README.md
example.php

index 2cbf670..0fa26ce 100644 (file)
--- a/README.md
+++ b/README.md
@@ -35,4 +35,7 @@ A simple Rails inspired PHP router class.
 
 
 ## More information
-Have a look at the example.php file or read trough the class' documentation for a better understanding on how to use this class.
\ No newline at end of file
+Have a look at the example.php file or read trough the class' documentation for a better understanding on how to use this class.
+
+## License
+MIT Licensed, http://www.opensource.org/licenses/MIT
\ No newline at end of file
index 04d0971..3d5e827 100644 (file)
@@ -11,6 +11,7 @@ $router->map('/contact/',array('controller' => 'someController', 'action' => 'co
 $router->map('/users/','users#create', array('methods' => 'POST', 'name' => 'users_create'));
 $router->map('/users/','users#list', array('methods' => 'GET', 'name' => 'users_list'));
 $router->map('/path-with-hyphens', 'some#target');
+$router->map('/site-section/:path/','some#target',array( 'filters' => array( 'path' => '(.*)') ) );
 
 $route = $router->matchCurrentRequest();