Issues

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

I have confirmed this, and scheduled it for the 1.5.0 release.

Resolved in trunk; please test.

Please evaluate and categorize as necessary.

Wil,

I think this is already resolved as per Matthews commnet.