• Igor Wiedler's avatar
    [UrlGeneratorExtension] service for generating URLs for routes · 5cc54a88
    Igor Wiedler authored
    Usage example:
    
        $app->register(new UrlGeneratorExtension());
    
        $app->get('/hello/:name', function($name) {
            return "Hello $name!";
        })
        ->bind('hello');
    
        $app->get('/go', function() use ($app) {
            $url = $app['url_generator']->generate('hello', array('name' => 'Fabien'));
            return $app->redirect($url);
        });
    
    Thanks to @choffmeister.
    5cc54a88
Name
Last commit
Last update
src/Silex Loading commit data...
tests Loading commit data...
vendor Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
autoload.php Loading commit data...
compile Loading commit data...
example.htaccess Loading commit data...
phpunit.xml.dist Loading commit data...