On Mon, Oct 13, 2008 at 12:25 AM, Matthew Ishii <[EMAIL PROTECTED]> wrote:
> Any way to combine Zend_Config_Ini and CSS???

I am not sure which part you are *exactly* having trouble with. I
don't see how Zend_Config_Ini would screw anything up - unless there
is an obvious error in your code, etc..

Anyway, if you "echo" css in a controller/action/view, make sure you
send the appropriate content-type (text/css) along. Then the browser
should pick it up and use it to render the content.

If this doesn't help, then maybe share some code? :)
Till

>
> On Fri, Oct 10, 2008 at 11:03 PM, Matthew Ishii <[EMAIL PROTECTED]> wrote:
>> I was trying to find a way to incorporate the Zend_Config ini file
>> with my CSS, so that I can define all my configs in the same place,
>> and configure everything right down to the colors on the site.  I came
>> across a website that had an article explaining how to load a dynamic
>> css file, using php.  Apparently you can use php, as long as the
>> content is CSS it wont matter.  Therefore I thought I could load my
>> configuration values into a php file that prints the css with a
>> heredoc (not necessary but any other way would be a pain in the ass).
>>
>> The problem is, it works fine, as long as I dont use the registry to
>> grab the configuration object.  When it doesnt work, the CSS doesnt
>> print, so when I try to view the CSS file, its not printing out, I get
>> a blank page.
>>
>> Ive tried everything, I tried pulling the config out into a variable
>> and then referencing that inside the CSS heredoc statement, no dice.
>> I tried requiring the Registry lib file in case that was causing the
>> issue, no dice.  Am I doing something wrong here, or does anyone else
>> have a way they do this that is easier?
>>
>

Reply via email to