0
我在管理員中創建了一個自定義頁面,在左邊的標籤中,我用ajax調用了控制器。在控制器我呼籲模板文件,但模板的內容沒有顯示 這裏是我的代碼 Tabs.phpMagento管理員模板不叫
$this->addTab(
'text_and_images',
array(
'label' => Mage::helper('agile_dynamicproductpage')->__('Add Text and Image'),
'title' => Mage::helper('agile_dynamicproductpage')->__('Add Text and Image'),
'url' => $this->getUrl('*/*/test'),
'class' => 'ajax'
)
);
IndexController.php
public function testAction()
{
$this->loadLayout('adminhtml_dynamicproductpage_dynamicblock_test');
$this->renderLayout();
}
adminlayout.xml
<adminhtml_dynamicproductpage_dynamicblock_test>
<reference name="content">
<block type="core/template" name="dynamicblock" template="agile_dynamicpductpage/test.phtml"/>
</reference>
</adminhtml_dynamicproductpage_dynamicblock_test>
test.phtml
<?php echo 'scuccess';?>
請幫