PHP code example of proklung / bitrix-symfony-router-module
1. Go to this page and download the library: Download proklung/bitrix-symfony-router-module 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/ */
proklung / bitrix-symfony-router-module example snippets
use Bitrix\Main\Loader;
Loader::
return [
// ....
'routing' => ['value' => [
'config' => [
'test.php'
]
]
]
];
$router = \Proklung\Symfony\Router\SymfonyRoutes::getInstance();
yaml
first_bitrix_route:
path: /foo/{param}/
controller: 'Proklung\Symfony\Router\ExampleController::cacheAction'
methods: GET|POST
lic_page:
path: /
controller: ''
defaults:
_public: true # Ключевой признак