|
||||
|
This has been resolved.
I simply added an absolute path to my css file in the master layout and everything is back to normal, I had goofed a bit in the description of the problem, I was getting my layout stuff, however I was not getting my css styling. Does anyone know of a helper function to link the stylesheet? (besides linking it with an absolute path) I found it odd that despite making the link relative to the document root the css file was not found.
__________________
Bugs that go away by themselves come back by themselves Never take life seriously, Nobody gets out alive anyway. |
|
||||
|
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() ?>
Code:
<?php $this->headLink()->appendStylesheet('http://zend.ioforge.com/styles/style.css', 'media', false); ?>
<?php echo $this->headLink() ?>
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.
__________________
Bugs that go away by themselves come back by themselves Never take life seriously, Nobody gets out alive anyway. |
|
|||
|
I'm not using zend_view (phptal as view) but but I think You've made mistake with 'media'. It should be one of these: Media types . So for normal display it's 'screen'.
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|