neilime / zf2-assets-bundle

AssetsBundle is a module for Zend Framework 2 allowing asset managment (bundling & caching)
https://neilime.github.io/zf2-assets-bundle/
MIT License
33 stars 20 forks source link

Assets not rendering in view #29

Closed Roywcm closed 10 years ago

Roywcm commented 10 years ago

Hello,

I've included your module in my project. It's caching al files correctly. I've added <?php echo $this->headScript(); ?> in the head and <?php echo $this->inlineScript() ?> just before </body>

But, the assets are not displaying in my view?

'asset_bundle' => array(
        'assetsPath' => '@zfRootPath/public/frontend',
        'cachePath' => '@zfRootPath/public/frontend/cache',
        'assets' => array(
            'css' => array('css/style.css'), //Define css files to include
            'media' => array('img','fonts'), //Define images to manage
        )
    ),
Roywcm commented 10 years ago

Allright, it has to be <?php echo $this->headLink(); ?> instead of <?php echo $this->headScript(); ?>