Symfony\Bundle\AsseticBundle\Templating\AsseticHelper::getAssetUrls
Gets the URLs for the configured asset.
Usage looks something like this: <?php foreach ($view['assetic']->assets('@jquery, js/src/core/*', '?yui_js') as $url): ?> <script src="<?php echo $url ?>" type="text/javascript"></script> <?php endforeach; ?> When in debug mode, the helper returns an array of one or more URLs. When not in debug mode it returns an array of one URL.
Signature
private function getAssetUrls(array
$inputs,
array
$filters,
array
$options )
Parameters
$inputs
— array- An array or comma-separated list of input strings
$filters
— array- An array or comma-separated list of filter names
$options
— array- An array of options
Returns
- array
- An array of URLs for the asset