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