PHP code example of aciliainternet / asset-bundle
1. Go to this page and download the library: Download aciliainternet/asset-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/ */
aciliainternet / asset-bundle example snippets
// app/AppKernel.php
public function registerBundles()
{
return array(
// ...
new Acilia\Bundle\AssetBundle\AciliaAssetBundle(),
// ...
);
}
{% stylesheets
'bundles/aciliaasset/css/plugins/cropper/cropper.min.css'
filter='cssrewrite' output='css/compiled/app.css' %}
<link rel="stylesheet" href="{{ asset_url }}" />
{% endstylesheets %}
% javascripts
'bundles/aciliaasset/js/plugins/cropper/cropper.min.js'
'bundles/aciliaasset/js/cropper.js'
'bundles/aciliaasset/js/uploader.js'
output='js/compiled/app.js' %}
<script src="{{ asset_url }}"></script>
{% endjavascripts %}