ZF-8196: Adding internal stylesheets (from dojox for example)
Description
Now in Zend_Dojo_View_Helper_Dojo_Container we may adding stylesheet by absolute path.
// If we use CDN
$this->dojo()->addStylesheet('http://ajax.googleapis.com/ajax/libs/…');
// If we use local copy
$this->dojo()->addStylesheet('/js/dojotoolkit/dojox/image/resources/Lightbox.css');
I think, it will be more useful if we will have some metho addInternalStylesheet:
$this->dojo->addInternalStylesheet('dojox/image/resources/Lightbox.css');
Implementation of this method is very simple:
//
public function addInternalStylesheet($path)
{
if ($this->useCdn()) {
$base = $this->getCdnBase()
. $this->getCdnVersion();
} else {
$base = $this->_getLocalRelativePath();
}
$this->addStylesheet($base . '/' . $path);
return $this;
}
Comments
Posted by Georgy Turevich (georgy) on 2009-10-31T17:46:54.000+0000
Please, delete "Dependency on ZF-7710"
Posted by Rob Allen (rob) on 2012-11-20T20:53:25.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.