How can id display from asset library?
PermalinkBlock add or edit.php
<?php $al = Loader::helper('concrete/asset_library');
echo $al->file('thumbnail', 'thumbnailFileID', 'Select Thumbnail');
$thumbID = ?
echo $thumbID; ? how the file id can display ? etc id:33
?>
John

http://www.concrete5.org/marketplace/addons/list-files-from-set/...
Controller.php
public function thumbnail(){
$al = Loader::helper('concrete/asset_library');
$myThumbnail_a = $al->file('thumbnail', 'thumbnailFileID', 'Select Thumbnail');
$myThumbnail_b = File::getByID($thumbnail);
$myThumbnail_c = $myThumbnail_b->getVersion()->getRelativePath();
$thumb_post = $_POST['thumbnailFileID'];
return $myThumbnail_a;
}
edit.php
echo $controller->thumbnail();
I want to output two variable of $myThumbail_c and $thumb_post at edit.php. I think use array. Please give me for example.
Thanks
return array('variable1' => $variable1, 'variable2' => $variable2);
You can also do a similar thing by creating and returning an object, then accessing the values object properties.