Welcome Guest, Not a member yet? Register   Sign In
Dynamic Css
#4

[eluser]Jamie Rumbelow[/eluser]
Then make a Stylesheets controller with various methods for the different stylesheets. Put the CSS in a view along with your PHP and remember to put

Code:
$this->output->set_header('Content-type: text/css');

In your controller somewhere. Then just link to it how you would any other action! You've got full access to the CI masterobject and PHP within your CSS stylesheets, and it doesn't require any nasty hacks.

Jamie


Messages In This Thread
Dynamic Css - by El Forum - 11-23-2009, 08:17 PM
Dynamic Css - by El Forum - 11-23-2009, 08:33 PM
Dynamic Css - by El Forum - 11-23-2009, 08:43 PM
Dynamic Css - by El Forum - 11-24-2009, 02:15 AM
Dynamic Css - by El Forum - 11-24-2009, 10:26 AM
Dynamic Css - by El Forum - 11-24-2009, 04:25 PM
Dynamic Css - by El Forum - 11-24-2009, 09:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB