PHP code example of pmaxs / path2query-bundle
1. Go to this page and download the library: Download pmaxs/path2query-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/ */
pmaxs / path2query-bundle example snippets
class DefaultController extends AbstractController
{
/**
* @Route("/xxx/{__path2query__}", ar2/val2
$request->get('var1') // val1
$request->get('var2') // val2
}
}