Download Image from File

Permalink
Hello,
Download image in the file manager doesn't work using the following code.
I'm using c5 8.4.2. Please can someone help me?

$bf = File::getByID(1);
$al = Loader::helper('concrete/asset_library');
echo $al->image('ccm-file', 'fID', t('Choose Image'), $bf);

 
PineCreativeLabs replied on at Permalink Reply
PineCreativeLabs
You're using Loader::helper, which is deprecated in 8.x. Try this:
$al = Core::make('helper/concrete/asset_library');
davidkham replied on at Permalink Reply
It also doesn't work.