Zend Framework 3 stylesheet in partials

322 Views Asked by At

I have a little problem with my partials in zf3, trying to add css in partial it doesn't work anymore as in zf2, this is my code:

<?php $this->headLink()->prependStylesheet($this->serverUrl() . '/path/to/css_file.css');?>

If anyone has any solution, I would greatly appreciate.

1

There are 1 best solutions below

2
On

you forgot the sweety echo function :)

<?php echo $this->headLink()->prependStylesheet($this->serverUrl() . '/path/to/css_file.css');?>