Quote:
Originally Posted by xorock
42.4.1.5. HeadLink Helper
|
I hate to do this to you but have you ever gotten any variation of the HeadLink helper to work?? Ive tried all the methods that made sense, with all the possible paths, relative and otherwise that I can think of, and no dice!!
For example, in my master layout script, in the head section, ive commented out my link to the stylesheet, and have implemented the headLink interface. Here is one example of how ive approached the issue:
Code:
<?php $this->headLink()->setStylesheet('http://zend.ioforge.com/styles/style.css', 'media', false); ?>
<?php echo $this->headLink() ?>
In this case, I view source on the result, and get the link that is identical to the one that works properly, the one ive commented out. However, the css is not being interpreted by the browser. I dont know why that could be. Ive also tried an alternative headLink method called appendStylesheet like so:
Code:
<?php $this->headLink()->appendStylesheet('http://zend.ioforge.com/styles/style.css', 'media', false); ?>
<?php echo $this->headLink() ?>
and also with a relative path
Code:
<?php $this->headLink()->setStylesheet('/styles/style.css', 'media', false); ?>
<?php echo $this->headLink() ?>
And still, no dice. When I visit the links, I get the stylesheet, but when I view my webpage, no styling whatsoever. What gives here? In addition to all this, later in the code im doing stuff like printing out my current working directory just to make sure ive got the proper document root, and im also printing out the contents of a recursive LS showing, not suprisingly, the contents of the webroot, showing the styles directory, and the contents of the styles directory, showing the style.css file.
This has got to be some kind of bug, either that or Im making some seriously obvious mistake and my foot is WAY inside my mouth at this point.