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
Posted by Joó Ádám (ceriak) on 2007-12-22T06:04:24.000+0000
As a second parameter the append() method could recieve the media type, so it could group the declarations by them.
Posted by Matthew Weier O'Phinney (matthew) on 2008-01-29T14:14:08.000+0000
Assigning to Ralph.
Posted by Ralph Schindler (ralph) on 2009-01-10T11:00:31.000+0000
Matthew do you agree with this?
Posted by Frank Brückner (frosch) on 2012-05-08T08:02:53.000+0000
We have a view helper for this: HeadStyle Helper.