2008年11月29日星期六

Re: [fw-core] head style problem

Brandon Peacey wrote:
>
> Hello
> Hi, I think what you're looking for is headLink(),
> http://framework.zend.com/manual/en/zend.view.helpers.html#zend.view.helpers.initial.headlink
>
> In the reference guide:
>
> "Use HeadLink to link CSS files
>
> HeadLink should be used to create <link> elements for including external
> stylesheets. HeadScript is used when you wish to define your stylesheets
> inline. " -
> http://framework.zend.com/manual/en/zend.view.helpers.html#zend.view.helpers.initial.headstyle
>
>
> I'm having a problem with headStyle method; every time I try to prepend a
> style ( or append a style for that matter ) it will comment out my style
> sheet directory. Here is an example.
>
>
>
> $view->headStyle()->prependStyle('public/styles/main.css')
>
>
>
> Output:
>
>
>
> <style type="text/css" media="screen">
> <!--
> public/styles/main.css
> -->
> </style>
>
>
>
> Can anyone explain to me why this behavior is occurring?
>
> Thank you for your time.
>
>
>

--
View this message in context: http://www.nabble.com/head-style-problem-tp20748333p20749023.html
Sent from the Zend Core mailing list archive at Nabble.com.

没有评论: