Re: [fw-general] headlink append seems to prepend

2010-12-06 Thread Hector Virgen
The code snippet provided by the OP has worked for me. Since Zend_Layout follows the two-step view pattern, the inner view is rendered first (which has the call to appendStylesheet()) and then the layout is rendered (which has a call to prependStylesheet()). So the order of things should look like

Re: [fw-general] headlink append seems to prepend

2010-12-06 Thread browndash
I am having the same problem. I appreciate the suggestion but I don't think it answers the question, or is a sufficient work around for that matter. handcoding the layout defeats the whole purpose. In my case I actually do want to override the main layout.css for a specific view, so I actually ne

Re: [fw-general] headlink append seems to prepend

2010-01-25 Thread gelform
Sometimes the most obvious things elude us. Great suggestion. Thanks! On Sun, 24 Jan 2010 16:09:26 -0800 (PST), "Hector Virgen [via Zend Framework Community]" said: > > > > What you are doing has worked for me in the past, which version of ZF are > you using? > > Also, unless I'm missing som

Re: [fw-general] headlink append seems to prepend

2010-01-24 Thread Hector Virgen
What you are doing has worked for me in the past, which version of ZF are you using? Also, unless I'm missing something, there is no real need for your layout script to be adding CSS to headLink() when it can output the tag itself: headLink() ?> I found it much easier to hand-code the base

[fw-general] headlink append seems to prepend

2010-01-24 Thread gelform
I've got this in my layout script: headLink()->prependStylesheet($this->baseUrl().'/c/css/loader.css'); ?> headLink(); ?> And in my controller I want to append a page-specific stylesheet: $this->view->headLink()->appendStylesheet('/c/css/homepage.css'); Which I would think would result in loader