Php Flow » Php

blank display grid in magento when add users

I was also facing this problem in magento when I was creating new api user for web service. We need to override function getRowUrl in app\code\core\Mage\Adminhtml\Block\Widget\Grid.php.

  1. /** 
  2.      * Return row url for js event handlers 
  3.      * 
  4.      * @param Mage_Catalog_Model_Product|Varien_Object 
  5.      * @return string 
  6.      */  
  7.     public function getRowUrl($item)  
  8.     {  
  9.         $res = parent::getRowUrl($item);  
  10.         return ($res ? $res : ‘#’);  
  11.     }  

Replace with:

  1. public function getRowUrl($item)  
  2.     {  
  3.         return $this->getUrl(‘*/*/edit’array(‘id’ => $item->getId()));  
  4.     }   

Did you enjoy this article? Share it!

About the Author:

Hi, This is Parvez Alam from India. I am software developer with 4 years’ experience in web development. I have submitted articles on PHP, Mysql, Magento,CSS, HTML, jQuery, web designing and social API. You can subscribe to my blog via RSS/Twitter/Google plus and Facebook. parvez1487(at)gmail(dot)com

Random Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>