relative path to image
im creating an image element in my code for a plugin.
i need a way to get the url of the plugins directory. Ive tried the server docroot and pathroot
but these refer to the file paths not the url paths. Is there a way to get the url vanilla is installed in from php.
i need a way to get the url of the plugins directory. Ive tried the server docroot and pathroot
but these refer to the file paths not the url paths. Is there a way to get the url vanilla is installed in from php.
1
Comments
use a /
Read more here http://vanillaforums.org/blog/writing-plugins-for-vanilla-2-part-1/
Vanilla Forums COO [GitHub, Twitter, About.me]
Vanilla Forums COO [GitHub, Twitter, About.me]
You can use Asset() function (also).
function Asset($Destination = '', $WithDomain = FALSE, $AddVersion = FALSE)