|Using PHP variables in your CSS file in Symfony||#1|
I'd love to use PHP variables in my CSS files but I don't want to load up the whole Symfony stack for each file load. Any one have any best practices and/or plugins to manage their CSS files in Symfony?
posted date: 2008-12-15 15:52:00
|Re: Using PHP variables in your CSS file in Symfony||#3|
posted date: 2008-12-15 17:56:00
|Re: Using PHP variables in your CSS file in Symfony||#4|
but you dont need full symfony stack for that ( except if you need some internal symfony state / variable ).You just use
<link rel="stylesheet" type="text/css" media="screen" href="/css/mycss.php" />
and then you can use php inside your css. you could add appropriate headers (text/css) with header in php.
posted date: 2009-01-27 05:01:00
|Re: Using PHP variables in your CSS file in Symfony||#5|
i was assuming the .htaccess and routing would try to run the symfony stack but you're right, it'll just hit whatever file is in there. thanks!
posted date: 2009-02-05 11:28:00
|select page: « 1 »|