Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Magento,如何在其他块内添加块,例如name=”等;标题“;块_Magento_Block - Fatal编程技术网

Magento,如何在其他块内添加块,例如name=”等;标题“;块

Magento,如何在其他块内添加块,例如name=”等;标题“;块,magento,block,Magento,Block,在my local.xml中,我有: <?xml version="1.0" encoding="UTF-8"?> <layout> <default> <reference name="header"> <block type="core/template" name="asdasd" as="asdasd" output="toHtml" template="newblock.phtml"/

在my local.xml中,我有:

<?xml version="1.0" encoding="UTF-8"?>
<layout>
    <default>
        <reference name="header">
            <block type="core/template" name="asdasd" as="asdasd" output="toHtml" template="newblock.phtml"/>
        </reference>    
</default>
</layout>

此代码使我的块显示在页面底部,无论我在“reference name=”“”中放置了什么

如何在不是type=“core/text\u list”的特定块内生成块。
我不想在.phtml文件中做任何更改。

他们只要删除
output=“toHtml”
并调用使用下面代码的任何位置即可

标题处。phtml
根据您的意愿发布