Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. class Company_Interface_Model_Import_Product extends Mage_Core_Model_Abstract {
  2.  
  3. public $_someVariableSetInProductClass = null;
  4.  
  5. public function _construct()
  6. {
  7. $this->_someVariableSetInProductClass = 'test';
  8. }
  9. }
  10.  
  11. class Company_Interface_Model_Import_Product_Categories extends Company_Interface_Model_Import_Product {
  12.  
  13. public function _construct()
  14. {
  15. parent::_construct();
  16. }
  17.  
  18. public function testAction()
  19. {
  20. var_dump($this->_someVariableSetInProductClass) //returns null
  21. var_dump(Mage::getModel('company_interface/import_product')->_someVariableSetInProductClass); //returns 'test';
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement