ZF-2399: Action/Partial doesn't allow for head*() helper usage
Description
I've done some troubleshooting, and noticed some weirdness. There are 2 use cases below:
common elements:
layout.phtml - has call to headStyle()->toString(2)
Now, if my View & partial look like the following:
test/view.phtml
<?php $this->headStyle()->appendStyle('#foo { color: purple; }') ?>
should be purple
<?= $this->partial('test/_partial.phtml') ?>
test/_partial.phtml
<?php $this->headStyle()->appendStyle('#bar { color: green; }') ?>
this text should be green
Everything works fine... HOWEVER, if you remove the headStyle() call in view.phtml, you don't get any styles in the layout at all. Stranger yet, the current view object actually has the reference to #bar.
Comments
Posted by Matthew Weier O'Phinney (matthew) on 2008-02-14T09:16:22.000+0000
I have confirmed this, and scheduled it for the 1.5.0 release.
Posted by Matthew Weier O'Phinney (matthew) on 2008-02-19T16:30:59.000+0000
Resolved in trunk; please test.
Posted by Wil Sinclair (wil) on 2008-03-31T16:10:03.000+0000
Please evaluate and categorize as necessary.
Posted by Jon Whitcraft (sidhighwind) on 2008-03-31T19:07:54.000+0000
Wil,
I think this is already resolved as per Matthews commnet.