我不知道为什么我的块没有出现。它没有出现在任何页面上,我清除了缓存。有人可以帮我弄清楚我错过了什么吗?然而,var_dump('test')出现了!
应用程序/设计/前端/默认/默认/模板/justin/head.phtml
testing this block
贾斯汀/比伯/块/Sings.php
class Justin_Bieber_Block_Sings extends Mage_Core_Block_Template
{
    protected function _construct()
    {
        parent::_construct();
        var_dump("test");
    }
}   
配置文件
<frontend>
       ...
    <layout>
        <updates>
            <bieber>
                <file>justin.xml</file>
            </bieber>
        </updates>
    </layout>
</frontend>
<global>
    <blocks>
        <bieber>
            <class>Justin_Bieber_Block</class>
        </bieber>
    </blocks>
    ...
</global>
应用程序/设计/前端/默认/默认/布局/justin.xml
<?xml version="1.0"?>
<layout version="0.1.0">
    <default>
        <reference name="head">
            <block type="bieber/bieber" name="justin_bieber">
                 <action method="setTemplate">
                    <template>justin/head.phtml</template>
                </action>
            </block>
        </reference>
    </default>
</layout>