ZF-2517: Allow HeadTitle() to be used in multiple locations

Issue Type: Improvement Created: 2008-01-29T10:51:14.000+0000 Last Updated: 2009-01-10T11:06:52.000+0000 Status: Closed Fix version(s): - 1.8.0 (30/Apr/09)

Reporter: Amr Mostafa (alienbrain) Assignee: Ralph Schindler (ralph) Tags: - Zend_View

Related issues: Attachments:


As HeadTitle() produces

tags, it's not possible to use in in other locations outside , it would be great if that could be possible. Mailing list reference:…

Thank you


Posted by Matthew Weier O'Phinney (matthew) on 2008-05-09T12:37:10.000+0000

Scheduling for next mini release

Posted by Simon Corless (sico) on 2008-08-31T04:03:46.000+0000

I don't know how you are planning to do this but to be able to specify a tag would be good... Maybe boolean would add or not add title tag, or a string would become the tag.

echo $this->headTitle(true); //

My Titleecho $this->headTitle(false); // My Title

echo $this->headTitle('h2'); //

My Title

And / Or implement another placeholder helper for titles, which is then extended by headTitle and in turn can be extended by our own classes. I use a pageTitle helper which is basically a duplicate of headTitle, if this could be based on a concrete implementation of a Title Helper it would make it all work more seamlessly.

Posted by Ralph Schindler (ralph) on 2009-01-10T11:06:52.000+0000

This sounds like it should come in the form of a Zend_View_Helper_Title helper. This is not within the scope of the headTitle() helper. Please create a proposal. Perhaps ping Jon Whitcraft (sidhighwind) as he has invested interest in the Zend_View Helpers and might be interested in creating this.

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.