2

Can someone please explain to me what is the difference? Or if they're equals, but one is "righter" than the other one?

For example: I've seen something like namespace_module/helper

2

The first part namespace_module as the alias for your blocks, models, helpers you define in your config.xml

<blocks>
    <namespace_module>
        <class>Namespace_Module_Block</class>
    </namespace_module>
    ...

The second part after the slash gives you the exact block/model/helper of your extensions. The / replaces the class type (_Block_, _Model_, ...) you want to load.

For your example namespace_module/helper it means Magento should load (in case of a block) Namespace_Module_Block_Helper.

Same for models and helper classes ...

some_module/some_other_stuff

... will load ...

Some_Module_Model_Some_Other_Stuff

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.