Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How a module is called. 
 
mathmax
Member
 
Total Posts:  44
Joined:  2008-09-21
 

Hello,

I would like to understand how things work after you past for example “{{block type="bestsellers/list" name="home.bestsellers.list" alias="product_homepage" template="catalog/product/list.phtml"}}" into the content section (in CMS->Manage page). I mean, I would like to understand HOW the module is called.
What I’m wondering:
- What does type="bestsellers/list" means ?
- Which code does {{...}} call? Directly the template “list.phtml”? Or the Mage_Bestsellers_Block_Bestsellers class?
How magento knows that the variable $this in list.phtml refers to the class Mage_Bestsellers_Block_Bestsellers in Bestsellers.php ?

I’m novice with Magento, so don’t hesitate to describe me the working from A to Z, if you can.
Thank you in advance.

Best regards,

mathmax

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top