I am learning Magento. Somewhere in module I have seen below code in config.xml
<global>
<rewrite>
<namespace_modulename>
<from><![CDATA[#^/module/controller/action/#]]></from>
<to>/modulename/newcontroller/newaction/</to>
</namespace_module>
</rewrite>
<rewrite>
<namespace_modulename2>
<from><![CDATA[#^/module/controller/action/#]]></from>
<to>/modulename/newcontroller/newaction/</to>
</namespace_modulename2>
</rewrite>
<rewrite>
<namespace_modulename3>
<from><![CDATA[#^/module/controller/action/#]]></from>
<to>/modulename/newcontroller/newaction/</to>
</namespace_module3>
</rewrite>
<blocks>
<review>
<rewrite>
<form>Namespace_Modulename_Block_Review_Form</form>
</rewrite>
</review>
</blocks>
</global>
I have two question regarding this code.
<namespace_modulename>it seems okay, But why they have used<namespace_modulename2>,<namespace_modulename3>. I mean why they have added number along withmodulename.My second question is that in the
<block>section, it seems here it is overwriting any predefined block. But how magento find which block have to rewrite.