Closed bentographics closed 12 years ago
[Strange, github shortens my issue text. continues below: ]
After that I am linking to the parsed file with a static link:
Not sure how to output the correct with with this: <?php echo $compiled_file; ?>
It usually has an incorrect href path.
However my main problem is that it currently does not work on the live server with the above setup. There is a PHP error with the above script and the page stays blank, parsing stops exact here above code block.
Any hints would be greatly appreciated.
My issue is shortend by Github for no apparent reason.
Here is the full text: http://screencast.com/t/aM6TYfi4
Have you tried using the tag method? It generates the link tag html for you.
echo CssCrush::tag(TEMPLATEPATH . '/style.css');
Thanks for the tip, but that does not work either unfortunately.
Do you need to see any templates or is there anything else I can try? Thank you.
Is there any tutorial now to make this work in a Wordpress environment either under MAMP and on a live server.
I have it working locally under MAMP with this setup:
<?php /* CSSCrush */ //$csscrush_path = TEMPLATEPATH ; require_once (TEMPLATEPATH . '/css/csscrush/CssCrush.php'); $compiled_file = CssCrush::file(TEMPLATEPATH . '/style.css'); ?>
After that I am linking to the parsed file with a static link:
Not sure how to output the correct with with this: <?php echo $compiled_file; ?>
It usually has an incorrect href path.
However my main problem is that it currently does not work on the live server with the above setup. There is a PHP error with the above script and the page stays blank, parsing stops exact here above code block.
Any hints would be greatly appreciated.