2013-03-22 25 views
0

任何人都可以告訴我,從網格視圖中調用的Magento getRowUrl()函數在哪裏?從哪裏調用網格中的Magento getRowUrl函數

你可以找到這個電網中的任何塊..

app\code\community\Company\Module\Block\Adminhtml\Module\Grid.php 

的函數定義有,但不從那裏被稱爲Magento的返回行網址

感謝

知道

回答

0

它是部件/ grid.phtml模板(link)

<tbody> 
<?php if (($this->getCollection()->getSize()>0) && (!$this->getIsCollapsed())): ?> 
<?php foreach ($this->getCollection() as $_index=>$_item): ?> 
    <tr title="<?php echo $this->getRowUrl($_item) ?>"<?php if ($_class = $this->getRowClass($_item)):?> class="<?php echo $_class; ?>"<?php endif;?> >