[pmwiki-users] path locations in <!--function--> skin directive

Peter Bowers pbowers at pobox.com
Fri Jan 21 11:46:48 CST 2011


On Fri, Jan 21, 2011 at 1:43 PM, viki.veeks at gmail.com
<viki.veeks at gmail.com> wrote:
> function myfunction() {
> ...
> ...
> printf("<img src=\"%s/%s\"/>", $SkinDir, "myimage.png");
> }
>
> printf prints <img src="/myimage.png"/>
> instead of <img src="path/to/myskin/myimage.png"/>
>
> How should I reference the location of my skin inside of my function?

Did you include:

global $SkinDir;

?

-Peter



More information about the pmwiki-users mailing list