Zend Framework, Stylsheets and ID attributes
Posted: Tue Jan 13, 2009 6:22 am
I'm using ZF and I need to append a stylesheet to a specific page (not the entire site-wide layout).
I need my stylesheet to have an ID so that I can swap its href using JavaScript however ZF does not seem to support this.
Anyone have any suggestions? I guess I'll just have to skip Zend_View for this bit.
I need my stylesheet to have an ID so that I can swap its href using JavaScript however ZF does not seem to support this.
Code: Select all
//This way has no ID parameter
$this->headLink()->appendStylesheet();
//This just blindly ignore both the id and type settings
$this->headLink(array(
'rel' => 'stylesheet',
'type' => 'text/css',
'id' => 'themecss',
'href' => '/kodify/themes/' . $this->theme . '.css'
));