Questions tagged «tabs»

2
创建标签并在标签内插入自定义网格
我按照本教程创建了一个网格,我想再创建4个网格,问题是我需要将所有这些网格添加到选项卡中 到目前为止,我已经创建了一个控制器来加载像这样的块: class Lime_Customgrid_Adminhtml_CustomController extends Mage_Adminhtml_Controller_Action { public function indexAction() { $this->_title($this->__('Custom'))->_title($this->__('Custom Lime')); $this->loadLayout(); $this->_setActiveMenu('sales/sales'); $this->_addContent($this->getLayout()->createBlock('lime_customgrid/adminhtml_table_custom')); $this->renderLayout(); } } 阻止> Adminhtml>表>自定义> Custom.php: <?php class Lime_Customgrid_Block_Adminhtml_Table_Custom extends Mage_Adminhtml_Block_Widget_Tabs { public function __construct() { parent::__construct(); $this->setId('custom_tabs'); // $this->setDestElementId('edit_form'); $this->setTitle(Mage::helper('lime_customgrid')->__('Custom tabs')); } protected function _beforeToHtml() { $this->addTab( 'form_listing', array( 'label' => Mage::helper('lime_customgrid')->__('Listing'), 'title' …


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.