widmogrod/zf2-assetic-module — Issue #2: Assets won't load if you don't provide configuration for controllers
Author: catalinciupic
Created: 2012-01-06 19:11:21+00:00
State: open

In https://github.com/widmogrod/zf2-assetic-module/blob/master/src/AsseticBundle/Service.php, i think line 210 must be replaced with: "$assetOptions = $this->configuration->getRoute($this->getRouteName());"

public function setupViewHelpersForRouter(\Zend\View\PhpRenderer $view)
{
$assetOptions = $this->configuration->getController($this->getControllerName());
if (!$assetOptions) {
return false;
}

$viewSetup = new ViewHelperSetup(
$this->configuration->getBaseUrl(),
$view,
$this->getAssetManager()
);

$viewSetup->setupFromOptions($assetOptions);

return true;
}