PHP code example of vkr / controller-delegation-bundle
1. Go to this page and download the library: Download vkr/controller-delegation-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/ */
vkr / controller-delegation-bundle example snippets
$this->controller
$this->delegateResponse
public function myDelegatedAction($someArgument)
{
...
$viewData = [
'templateVar' => 'value',
];
return $this->delegateResponse->setViewData($viewData);
}