public function render(Varien_Object $row) { $supplierId = $row->getSupplierId(); $supplierName = $row->getSupplierName(); $url = Mage::helper('adminhtml')->getUrl('adminhtml/inpu_supplier/edit', array('id' => $supplierId)); $content = '<a href=' . $url . '>' . $supplierName . '</a>'; return $content; }
public function render(Varien_Object $row) { $supplier_id = $row->getSupplierId(); $contentCSV = ''; $content = ''; $url = Mage::helper('adminhtml')->getUrl('inventorypurchasingadmin/adminhtml_supplier/edit', array('id' => $supplier_id)); $name = $row->getSupplierName(); $content .= "<a href=" . $url . ">{$name}<a/>" . "<br/>"; $contentCSV = $name; if (in_array(Mage::app()->getRequest()->getActionName(), array('exportCsv', 'exportXml'))) { return $contentCSV; } return '<label>' . $content . '</label>'; }