PHP code example of hautelook / templated-uri-bundle
1. Go to this page and download the library: Download hautelook/templated-uri-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hautelook / templated-uri-bundle example snippets
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Hautelook\TemplatedUriBundle\HautelookTemplatedUriBundle(),
// ...
);
}
$templateLink = $container->get('hautelook.router.template')->generate('hautelook_demo_route',
array(
'page' => '{page}',
'sort' => array('{sort}'),
'filter' => array('{filter}'),
)
);