PHP code example of heimrichhannot / contao-frontend-framework-bundle
1. Go to this page and download the library: Download heimrichhannot/contao-frontend-framework-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/ */
heimrichhannot / contao-frontend-framework-bundle example snippets
use HeimrichHannot\FrontendFrameworkBundle\Helper\FrontendFrameworkHelper;
class CustomController {
private FrontendFrameworkHelper $frontendFrameworkHelper;
public function myCustomAction()
{
if ('bootstrap4' === $this->frontendFrameworkHelper->currentFramework())
{
$theme = $this->frontendFrameworkHelper->currentTheme();
if (true === $theme->custonControlsBs4) {
// do something
}
}
}
}