Issues

ZF-2323: Create HeadStylesheet as a new Zend_View helper

Description

I'd like to request a new helper allowing atomically built

It would operate similar to this example:-

View


<? $this->headStylesheet()->append('#heading1 { background-image: url(/img/heading/member-foo.png) }') ?>
<? $this->headStylesheet()->append('#heading2 { background-image: url(/img/heading/member-bar.png) }') ?>
<? $this->headStylesheet()->append('#heading3 { background-image: url(/img/heading/member-other.png) }') ?>

Layout


<?= $this->headStylesheet() ?>

Output


Comments

As a second parameter the append() method could recieve the media type, so it could group the declarations by them.

Assigning to Ralph.

Matthew do you agree with this?

We have a view helper for this: HeadStyle Helper.