Here's an interesting problem I've run into that I hope somebody may
have seen before.
I'm wanting to include a php file that acts as a CSS file so that I
can create variables inside of it for more flexibility in my
stylesheet.
I've done this several times before, but not with CakePHP.
The problem comes when I include my main stylesheet in the PHP. The
spacing changes without cause.
If I link to main.css via the cakephp method ( echo $this-
>css(array('main')) ) it works just fine.
If I create a manual xhtml link (<link href="/css/main.css"
rel="stylesheet" type="text/css" />) and disable the cake call again
it works fine.
But when I link to container.css.php through <link href="/css/
container.css.php" rel="stylesheet" type="text/css" />
and inside container.css.php I have:
<?php
if (extension_loaded('zlib') && !ini_get('zlib.output_compression'))
@ob_start('ob_gzhandler');
header('Content-type: text/css; charset: UTF-8'); // PHP File acts as
a stylesheet.
header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 3600) . '
GMT');
define('DS', DIRECTORY_SEPARATOR); // Easy Slash
define('PATH_ROOT', dirname(__FILE__) . DS); // Make the CSS directory
the root.
/**/
include(PATH_ROOT . 'main.css');
?>
Everything displays so I know it's finding the file but the flow
breaks.
I haven't been able to tell if its all or just some of the properties
(margin, line-height, padding) but it just doesn't display correctly.
Has anybody else run into this problem?
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---