Welcome Guest, Not a member yet? Register   Sign In
Dynamic CSS - Common approach for code-igniter?
#2

[eluser]Hannes Nevalainen[/eluser]
I have a css-controller thats
is outputing a css-file which I'm including in my main view. You can easily pass data as uri segments or pull data from your database.

Code:
<link rel="stylesheet" type="text/css" href="<?=site_url('css')?>" />

Enable caching if your css controller while not developing, then the overhead added by having php to output your css is reduced.

Happy Coding! //Hannes


Messages In This Thread
Dynamic CSS - Common approach for code-igniter? - by El Forum - 08-01-2008, 01:41 AM
Dynamic CSS - Common approach for code-igniter? - by El Forum - 08-01-2008, 08:47 AM
Dynamic CSS - Common approach for code-igniter? - by El Forum - 08-02-2008, 09:07 AM
Dynamic CSS - Common approach for code-igniter? - by El Forum - 08-02-2008, 10:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB