Hi,
Docs page “Linking to Stylesheets” says:
you can allow your stylesheets to run through the full template parser so tags and PHP can be used. To do so, just use a normal path variable to access your stylesheet. If you specify a template this way make sure that it is set to “CSS Stylesheet” as the Template Type.
Having done this I defined PHP function in stylesheet template and made several calls to it from the same template.
Now I am observing several strange effects:
1) if PHP function is defined in stylesheet after loading a page I get PHP error “Call to undefined function”;
2) if PHP function is defined in include file and called from stylesheet, the page loads, but is unstyled; if I load stylesheet alone, I find in it PHP error “Call to undefined function”;
3) if PHP function is defined BOTH in in stylesheet and in include file, everything works as expected.
This seems very strange to me. PHP should work in cases (1) and (2) and it should not work in case (3), but now it is vice versa.
How should be PHP function to be defined for use in stylesheets?
I use ExpressionEngine 1.6.1 build 20071204 on EngineHosting.
Thanks.
