> headLink()
> ->appendStylesheet('/css/common.css');
> ->appendStylesheet('/css/header.css');
> ->appendStylesheet('/css/footer.css');
> ->appendStylesheet('/css/content.css');
> ->appendStylesheet('/css/data.css');
>
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
> 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
> 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');
>
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');
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
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()-
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()->