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

What does _init(’core/website’) do? 
 
Emperor
Sr. Member
 
Total Posts:  111
Joined:  2007-08-31
 

The “app\code\core\Mage\core\model\abstract.php” has a function

protected function _init($resourceModel)
    
{
        $this
->_setResourceModel($resourceModel);
    
}

The “app\code\core\Mage\core\model\website.php” class file extends this file and and makes a call to the _init() function above.
Can anyone tell me where to find that resource file to see the database operations?

 
Magento Community Magento Community
Magento Community
Magento Community
 
retif
Sr. Member
 
Total Posts:  171
Joined:  2008-08-16
Odessa, Ukraine
 

look at core/etc/config.xml

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