Example #1
0
 public function render(Varien_Object $row)
 {
     if (file_exists($row->getMainPath())) {
         $downloadUrl = Mage::helper('adminhtml')->getUrl('amfeed/adminhtml_profile/download', array('file' => $row->getFilename() . $row->getFileExt()));
         return '<a href="' . $downloadUrl . '">' . $row->getFilename() . '</a>';
     } else {
         return $row->getFilename();
     }
 }