A relative path to your plugin code.
This variable can be used to accurately point to files in your addon that need to be accessed from a browser.
global $page,$addonRelativeCode; $page->head .= '<link rel="stylesheet" type="text/css" href="'.$addonRelativeCode.'/style.css'.'" />';
global $addonRelativeCode; echo '<img src="'.$addonRelativeCode.'/image.png" />';
An absolute path to your plugin code.
Similar to $addonRelativeCode, $addonPathCode gives you a path to the directory where your addon code resides. $addonPathCode, however, is an absolute path. eg /var/www/gpeasy/data/_addondata/addon_name
$addonPathData gives you an absolute path to a writable folder within the /data folder specific to your addon.
Note: To save files in the /data folder, you should use the static method gpFiles::Save($file,$contents) where $file is the absolute path of the file you want to save and $contents is the string you want saved in $file.
A relative path to the data directory specific to your addon.
A new release for Typesetter is in the works with a lot of improvements including the ... Read More
Typesetter 5.1Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More
More News
What CMS: Find out what CMS a site is using.
Who Hosts This: Find out who is hosting any web site
WordPress Theme Detect: Find out which theme a WordPress site is using