ZF-2399: Action/Partial doesn't allow for head*() helper usage

Issue Type: Bug Created: 2008-01-09T01:39:31.000+0000 Last Updated: 2008-03-31T19:07:54.000+0000 Status: Resolved Fix version(s): - 1.5.0 (17/Mar/08)

Reporter: Eric Coleman (eric) Assignee: Ralph Schindler (ralph) Tags: - Zend_View

Related issues: - ZF-2403



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:


<pre class="highlight">
<?php $this->headStyle()->appendStyle('#foo { color: purple; }') ?>

should be purple

<?= $this->partial('test/_partial.phtml') ?>


<pre class="highlight">
<?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.


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


I think this is already resolved as per Matthews commnet.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.