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()->
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()-
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
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 use your favorite build tool to concatenate your css files into one on
deployment :-)
During development, just have your css file use @import statements to
include the other css files.
David
Rafael wrote:
>
>
> I suggest to create a view helper to scan and load all stylesheets :)
>
>
--