Page 1 of 1

[solved] Get uploads_path inside a UDT?

Posted: Sat May 03, 2014 2:27 am
by Cerulean
Anyone know how to get the full server paths like "uploads_path" or "root_path" inside a UDT?

Thanks.

Re: Get uploads_path inside a UDT?

Posted: Sat May 03, 2014 11:22 am
by velden

Re: Get uploads_path inside a UDT?

Posted: Sat May 03, 2014 10:25 pm
by Cerulean
Great, thanks.

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.