i am working on a module e.g “Mymodule“, in which i need to filter the results. i.e. for Partners i created Partner.php and for Community i created Community.php in
Mymodule/Block/Partner.php
Mymodule/Block/Community.php
Now i wanted to access their code in frontend through Mymodule.XML
<block type="mymodule/partner" ......................... />
but this doesn’t work on LIVE SERVER, although it does work on local Wamp server 🙁 … Any idea ?
Although when i access the default Mymodule.php code in the same and add the code i placed in partner and community file, it does work.
Is there something i am missing ?
I’m not strictly sure how your code would ever have worked. But assuming you haven’t built a module before, you’ll need a minimum of 3 files.
In the first file …
app/etc/modules/Sonassi_Module.xmlIn the second file …
app/code/community/Sonassi/Module/etc/config.xmlIn the third file …
app/code/community/Sonassi/Module/Block/Partner.phpThen finally, you can then use