Skip to main content
6 events
when toggle format what by license comment
Oct 15, 2020 at 3:01 comment added Stalinko thanks @K.Rijpstra but I haven't been working with craft cms since 2018 :))
Oct 14, 2020 at 14:35 comment added Koen Rijpstra @Stalinko You can use craft()->config->parseEnvironmentString() to replace {basePath} with the config basePath like this $assetFilePath = craft()->config->parseEnvironmentString($sourcePath.$folderPath.$asset->filename);
Mar 15, 2018 at 11:37 comment added Stalinko Doesn't work for me :( it results in {basePath}uploads/example.png which isn't a valid path obviously
Aug 1, 2015 at 17:21 vote accept Jeremy Allen
Aug 1, 2015 at 16:54 history edited Mike Pepper CC BY-SA 3.0
added 205 characters in body
Aug 1, 2015 at 12:07 history answered Mike Pepper CC BY-SA 3.0