Php 如何在页脚上添加新块?Magento

Php 如何在页脚上添加新块?Magento,php,html,xml,magento,Php,Html,Xml,Magento,我有这一页: 我想放一个h1标签,如下图所示 文件app/design/frontend/rwd/default/layout/page.xml 我添加了以下代码XML <block type="page/html_footer" name="footer" as="footer" template="page/html/footer.phtml"> <block type="page/html_wrapper" name="bottom.c

我有这一页:

我想放一个h1标签,如下图所示

文件
app/design/frontend/rwd/default/layout/page.xml

我添加了以下代码XML

<block type="page/html_footer" name="footer" as="footer" template="page/html/footer.phtml">
                <block type="page/html_wrapper" name="bottom.container" as="bottomContainer" translate="label">
                    <label>Page Footer</label>
                    <action method="setElementClass"><value>bottom-container</value></action>
                </block>

                <block type="page/test2" name="test" as="test" template="page/test2/test.phtml"></block> //here is my modification

                <block type="page/switch" name="store_switcher" as="store_switcher" after="*" template="page/switch/stores.phtml"/>
                <block type="page/template_links" name="footer_links" as="footer_links" template="page/template/links.phtml">
                    <action method="setTitle"><title>Quick Links</title></action>
                </block>
                <block type="page/template_links" name="footer_links2" as="footer_links2" template="page/template/links.phtml">
                    <action method="setTitle"><title>Account</title></action>
                </block>
                <!-- This static block can be created and populated in admin. The footer_links cms block can be used as a starting point. -->
                <!--<block type="cms/block" name="footer_social_links">
                    <action method="setBlockId"><block_id>footer_social_links</block_id></action>
                </block>-->
            </block>
PHTML文件的代码

<h1>test</h1>
测试
我想做一些简单的事情,比如学习使用block站点

你能告诉我什么是好的,什么应该是正确的吗


提前谢谢

首先:创建自己的主题,而不是修改核心文件,请参见:。代码的问题在于块类型,请尝试
core/template
块:

<block type="core/template" name="test" as="test" template="page/test2/test.phtml"></block>

完成测试后,请使用一些真实的名称

<block type="core/template" name="test" as="test" template="page/test2/test.phtml"></block>