maximebf / atomik

Micro framework for PHP 5.3+ [UNMAINTAINED]
MIT License
46 stars 18 forks source link

Fix issue with routes starting by a parameter. #28

Closed zessx closed 10 years ago

zessx commented 10 years ago

Example :

Atomik::set(array(
    'app' => array(
        'routes' => array(
            ':year/archives' => array('action' => 'archives/index')
        )
    )
);

For http://domain.tld/2014/archives uri, action will be 2014/archives instead of archives/index, as the :year parameter is not caught.