Issues

ZF-6431: HeadLink() appendFile print 2 time the same entry.

Issue Type: Bug Created: 2009-04-26T13:30:19.000+0000 Last Updated: 2012-11-20T20:52:45.000+0000 Status: Closed Fix version(s): Reporter: Mathieu Delisle (m4d3l) Assignee: None Tags: - Zend_View

Related issues: Attachments:

Description

I have 2 view Helper for my form.

one for the date and other for the time. in my two view helper I have this code.

$view->headLink()->appendStylesheet(array( 'type' => 'text/css', 'rel' => 'stylesheet', 'media' => 'all', 'href' => $view->StaticUrl('/plugins/jquery/css/ui-lightness/jquery-ui-1.7.1.custom.css') , ));

When I use a date and a time element in the same form, the two helper are called and this css link is print 2 time in my header. headScript() work like a charme for that. I can print $view->headScript()->appendFile($view->StaticUrl('/plugins/jquery/jquery-1.3.2.min.js')); as many time I want it will only print it once in my header.

Comments

Posted by Matthew Weier O'Phinney (matthew) on 2009-04-26T17:50:56.000+0000

Assigning to Ralph.

Posted by Rob Allen (rob) on 2012-11-20T20:52:45.000+0000

Bulk change of all issues last updated before 1st January 2010 as "Won't Fix".

Feel free to re-open and provide a patch if you want to fix this issue.

Have you found an issue?

See the Overview section for more details.

Copyright

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

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

Contacts