TheBigK
Well-known member
Can someone tell me if there's any advantage in using any of the following ways to fetch a model?
and
PHP:
public function actionIndex()
{
$myModel = $this->_getMyModel()
}
protected function _getMyModel()
{
return $this->getModelFromCache('MyAddon_Model_MyModel');
}
and
PHP:
public function actionIndex()
{
$myModel = $this->getModelFromCache('MyAddon_Model_MyModel');
}