AltoRouter v1.2.0 Release Notes

Release Date: 2016-05-08 // almost 8 years ago
  • ➕ Added getRoutes to retrieve a full route mapping (#97)

    $router = new AltoRouter()$router-\>addRoutes(array(array('GET', '/login', 'show\_login\_action', 'show\_login'),array('POST', '/login', 'do\_login\_action', 'do\_login'),array('DELETE', '/logout', 'do\_logout\_action', 'do\_logout'),));$routes = $router-\>getRoutes();var\_export($routes);
    

    Will output:

    array (0 =\>array (0 =\> 'GET',1 =\> '/login',2 =\> 'show\_login\_action',3 =\> 'show\_login', ),1 =\>array (0 =\> 'POST',1 =\> '/login',2 =\> 'do\_login\_action',3 =\> 'do\_login', ),2 =\>array (0 =\> 'DELETE',1 =\> '/logout',2 =\> 'do\_logout\_action',3 =\> 'do\_logout', ),)
    

    📚 Furthermore does this release concerns documentation changes.

    View all changes since v1.1.0.