A community in which webmasters can ask for help with topics such as PHP coding , MySQL , IT jobs, web design, IT security.
Current location:homephp forumphp talk in 2008 yearUsing PHP variables in your CSS file in Symfony - page 1
User InfoPosts
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#2
I had made out the solution of this problem. click to view my topic...

hope that hepls.

posted date: 2008-12-15 15:52:01


Re: Using PHP variables in your CSS file in Symfony#3
Here's one good Plugin that tries to manage and/or combine your assets:http://www.symfony-project.org/plugins/sfCombinePluginHere's their description:Combines multiple JavaScript and CSS files into one JavaScript and one CSS file at runtime, in order to minimize the number of HTTP requests required to render a given page. This plugin works in distributed environments, supports asset version keys, and is highly customizable.Also, since it's compiled, you may be able to use simple PHP as long as the variables stick within the same file.

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 »
Copyright ©2008-2017 www.momige.com, all rights reserved.