1. Go to this page and download the library: Download eltharin/twigfilesgetter 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/ */
eltharin / twigfilesgetter example snippets
php
use Eltharin\TwigFilesGetterBundle\Service\FileManager;
...
public function buildView(FormView $view, FormInterface $form, array $options)
{
FileManager::registerJsFile('/bundles/eltharinreloadablefield/js/reloader.js');
...
}
{{ get_
public function buildView(FormView $view, FormInterface $form, array $options)
{
FileManager::registerJsFile('/bundles/eltharinreloadablefield/js/file_in_head.js', 'head');
FileManager::registerJsFile('/bundles/eltharinreloadablefield/js/file_bottom.js', 'bottom');
...
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.