Welcome Guest, Not a member yet? Register   Sign In
When exactly is the database loaded?
#4

[eluser]jwindhorst[/eluser]
Yea, I was just thinking about that as well, but there is another hurdle with my plan to take over the world.

I want to set CSS values based on DB settings. So I moved stylesheet.css to stylesheet.php and use:
Code:
<?php header("Content-type: text/css"); ?>
at the top of the css file. Then call it like normal with it's new name:
Code:
<link rel="stylesheet" type="text/css" media="screen" href="style.php">

The PHP is firing inside of the CSS file, but I don't seem to have access to CI in there. Any thoughts on the new and improved problem? I did try adding get_defined_constants() and get_defined_vars() inside the php/css file but they only get the big php stuff, nothing application specific.

Thanks!


Messages In This Thread
When exactly is the database loaded? - by El Forum - 01-13-2010, 09:56 PM
When exactly is the database loaded? - by El Forum - 01-13-2010, 10:06 PM
When exactly is the database loaded? - by El Forum - 01-13-2010, 10:44 PM
When exactly is the database loaded? - by El Forum - 01-13-2010, 10:51 PM
When exactly is the database loaded? - by El Forum - 01-13-2010, 10:56 PM
When exactly is the database loaded? - by El Forum - 01-13-2010, 10:58 PM
When exactly is the database loaded? - by El Forum - 01-13-2010, 11:08 PM
When exactly is the database loaded? - by El Forum - 01-13-2010, 11:10 PM
When exactly is the database loaded? - by El Forum - 01-13-2010, 11:29 PM
When exactly is the database loaded? - by El Forum - 01-13-2010, 11:38 PM



Theme © iAndrew 2016 - Forum software by © MyBB