Re: [fw-general] repeated stylesheets in html header

2010-11-02 Thread Andreas Möller
> headLink() > ->appendStylesheet('/css/common.css'); > ->appendStylesheet('/css/header.css'); > ->appendStylesheet('/css/footer.css'); > ->appendStylesheet('/css/content.css'); > ->appendStylesheet('/css/data.css'); >

Re: [fw-general] repeated stylesheets in html header

2010-11-02 Thread Jurian Sluiman
On Tuesday 02 Nov 2010 11:28:45 Andreas Möller wrote: > You are not chaining here. The code above will result in an error. Well, if you call appendStylesheet() it returns the view helper again, so chaining is possible. At least with my ZF version (1.10.3). > The use of short open tags is not rec

Re: [fw-general] repeated stylesheets in html header

2010-11-02 Thread Andreas Möller
> I suggest to create a view helper to scan and load all stylesheets :) Doing so may not achieve the expected results as scanning a directory for stylesheets contained therein may not return stylesheets in the desired order. Apart from this, you may want to specifiy stylesheets for different med

Re: [fw-general] repeated stylesheets in html header

2010-11-02 Thread Andreas Möller
> Or chain the methods, which is even less code: > > headLink() > ->appendStylesheet('/css/common.css'); > ->appendStylesheet('/css/header.css'); > ->appendStylesheet('/css/footer.css'); > ->appendStylesheet('/css/content.css'); >

Re: [fw-general] repeated stylesheets in html header

2010-11-01 Thread Rafael
I suggest to create a view helper to scan and load all stylesheets :) Em 01/11/2010 20:14, Jurian Sluiman escreveu: Or chain the methods, which is even less code: headLink() ->appendStylesheet('/css/common.css'); ->appendStylesheet('/css/header.css');

Re: [fw-general] repeated stylesheets in html header

2010-11-01 Thread Jurian Sluiman
Or chain the methods, which is even less code: headLink() ->appendStylesheet('/css/common.css'); ->appendStylesheet('/css/header.css'); ->appendStylesheet('/css/footer.css'); ->appendStylesheet('/css/content.css'); ->a

Re: [fw-general] repeated stylesheets in html header

2010-11-01 Thread Christian Riesen
Hi Because you echo on an append. Change this: > headLink()->appendStylesheet('/css/common.css') . "\n"?> > headLink()->appendStylesheet('/css/header.css') . "\n"?> > headLink()->appendStylesheet('/css/footer.css') . "\n"?> > headLink()->appendStylesheet('/css/content.css') . "\n"?> > headLink()-

[fw-general] repeated stylesheets in html header

2010-11-01 Thread Steve Rayner
My layout contains the following; Titanium Application headLink()->appendStylesheet('/css/common.css') . "\n"?> headLink()->appendStylesheet('/css/header.css') . "\n"?> headLink()->appendStylesheet('/css/footer.css') . "\n"?> headLink()->appendStylesheet('/css/content.css') . "\n"?> headLink()->