Posted over 10 years ago. Visible to the public.

Boilerplate Model Class

Copy
/** * Yourcompany.com * * PHP Version 5 * * @category Namespace * @package Namespace_Module * @author Your Name <your.name@yourcompany.com> * @copyright 2012 yourcompany.com * @license http://www.yourcompany.com/license.txt Your license * @link N/A */ /** * Something model * * @category Namespace * @package Namespace_Module * @author Your Name <your.name@yourcompany.com> * @license http://www.yourcompany.com/license.txt Your license * @link N/A */ class Namespace_Module_Model_Something extends Mage_Core_Model_Abstract { /** * Initialize resource (links resource model) * * @return void */ protected function _construct() { $this->_init('namespace_module/something'); } }

Owner of this card:

Avatar
Mike Whitby
Last edit:
almost 9 years ago
Posted by Mike Whitby to Magento
This website uses short-lived cookies to improve usability.
Accept or learn more