I have my module config like this
<config>
<modules>
<Foo_Bar>
<version>1.0.0</version>
</Foo_Bar>
</modules>
<global>
<blocks>
<foo_bar>
<class>Foo_Bar_Block</class>
</foo_bar>
</blocks>
</global>
</config>
I have my block class in the file
/app/code/local/Foo/Bar/Block/random.php
with content
class Foo_Bar_Block_Random extends Mage_Core_Block_Template {
function __construct() {
echo __METHOD__;
}
}
I am expecting the method to be echoed in my home page(checking whether my block is working fine). But it is not echoing the method block method name
my /etc/config is
<config>
<modules>
<Foo_Bar>
<active>true</active>
<codePool>local</codePool>
</Foo_Bar>
</modules>
</config>
can somebody tell me what am i doing wrong?