I have a module in which a protected variable is defined as follows:
protected $stores = array('a','b', 'c', 'd');
I want to load define this variable inside a custom block so I am trying to do this:
protected $staticBlock = Mage::getModel('cms/block')->load('custom_block')->getContent(); protected $stores = array($staticBlock);
This gives me PHP errors of course.
It really sounds like a newling question, but the real problem is that I tried to transform it into a function, but the entire code uses the variable without calling anything except the variable directly. I am really lost now and can't find a way to achieve this.
Any idea will be appreciated.