ZF-4434: Unnecessary stylesheet dojo.css in $dojo->registerDojoStylesheet()

Issue Type: Bug Created: 2008-09-30T21:40:47.000+0000 Last Updated: 2010-07-27T09:00:53.000+0000 Status: Resolved Fix version(s): - 1.7.1 (01/Dec/08)

Reporter: Chris Martin (cgmartin) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Dojo

Related issues: Attachments:


The registerDojoStylesheet() method in Zend_Dojo_View_Helper_Dojo_Container, used only by Zend_Dojo_View_Helper_Editor, is unwanted by default and can adversely affect css styled pages.

The dojo.css stylesheet is not required for themeing. It acts more like YUI's reset.css, providing boilerplate styles. It can be safely omitted without affecting Zend_Dojo_View_Helper_Editor rendering (or any other dijit).

Workaround: Add the following to your view script AFTER creating the Zend_Dojo_View_Helper_Editor to disable importing dojo.css:

 <?php $this->dojo()->registerDojoStylesheet(false); ?>


Posted by Chris Martin (cgmartin) on 2008-09-30T22:47:51.000+0000

I should mention that this was found in trunk rev 11557.

Posted by Matthew Weier O'Phinney (matthew) on 2008-10-01T05:53:21.000+0000

Resolved in trunk.

Posted by Wil Sinclair (wil) on 2008-12-01T13:50:45.000+0000

Updating these issues to mark them resolved for 1.7.1.

Posted by David Hollingshead (dhinged) on 2010-07-27T09:00:52.000+0000

I just installed Zend Framework 1.10.5 with the default dojo files and it imported dojo.css by default. What is considered "resolved"?

Have you found an issue?

See the Overview section for more details.


© 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.