Mage_Core_Block_Messages をオーバーライドしようとしています モジュール Mycompany_Core.xml を作成し、パス app/etc/modules/Mycompany_Core.xml に保存します
<?xml version="1.0"?>
<config>
<modules>
<Mycompany_Core>
<active>true</active>
<codepool>local</codepool>
</Mycompany_Core>
</modules>
</config>
次に私は app/code/local/Mycompany/Core/Block/Messages.php で作成されました
class Mycompany_Core_Block_Messages extends Mage_Core_Block_Messages
{
//update method
}
app/code/local/Mycompany/Core/etc/config.xml に config.xml を追加します。
<config>
<modules>
<Mycompany_Core>
<version>0.0.1</version>
</Mycompany_Core>
</modules>
<global>
<blocks>
<core>
<rewrite>
<messages>Softdk_Core_Block_Messages</messages>
</rewrite>
</core>
</blocks>
</global>
</config>
しかし、フロントエンドで結果が表示されません。どこを間違えているのだろうか。助けてくれてありがとう。