Anyone know how to get the full server paths like "uploads_path" or "root_path" inside a UDT?
Thanks.
[solved] Get uploads_path inside a UDT?
[solved] Get uploads_path inside a UDT?
Last edited by Cerulean on Sat May 03, 2014 10:26 pm, edited 1 time in total.
Re: Get uploads_path inside a UDT?
Great, thanks.
For posterity...
For posterity...
Code: Select all
$gCms = cmsms();
$config = $gCms->getConfig();
// now you can access config values in your UDT like:
// $config["uploads_path"]
// $config["root_path"]
// etc.