I am working on custom module.The code is written in following order:
class JG_Mymodule_Model_Mysql4_Mymodule{ }
One of my friend wirte code in model like that:
protected function _afterLoad(Mage_Core_Model_Abstract $object)
{
$select = $this->_getReadAdapter()->select()
->from($this->getTable('findyoursize_values'))
->where('findyoursize_id = ?', $object->getId());
if ($data = $this->_getReadAdapter()->fetchAll($select)) {
$storesArray = array();
foreach ($data as $row) {
$storesArray[] = $row['dimensions_id'];
}
$object->setData('in_products', $storesArray);
Mage::getSingleton('core/session')->setMyValue($storesArray);
}
return parent::_afterLoad($object);
}.
I want to use $object->setData('in_products') value in my block class , how can I access that value?