amc
Posts: 22
|
Posted: 01/11/2013, 7:25 AM |
|
Hi
I'm writing a PHP function to generate the html of the page (it's a custom report). I need to know the path to the design, to write one image URL. I know I can do that using
{CCS_PathToMasterPage} in HTML, but how can I get it from the PHP?
Thanks
|
|
|
Gena
Posts: 591
|
Posted: 01/11/2013, 7:46 AM |
|
try to use like
Global $PathToCurrentMasterPage;
then use $PathToCurrentMasterPage variable
_________________
Gena |
|
|
amc
Posts: 22
|
Posted: 01/11/2013, 8:13 AM |
|
Fantastic!!!
I suppose you know this because you've looked into the CCS code, don't you?. I couldn't find it in the help file...
Thank you very much...
|
|
|
Gena
Posts: 591
|
Posted: 01/11/2013, 8:17 AM |
|
sure I did!!
my brain way was:
1. {CCS_PathToMasterPage} is a Resource variable
2. find in the PHP code how this variable is assigned
3. found the code
4. write answer
5. drink a beer
_________________
Gena |
|
|
|