Code: Select all
$dataMapper = self::DATAMAPPER_PREFIX . "_something";
$this->setMapper($dataMapper::getInstance()); //this line gives error
Thanks for the help
Moderator: General Moderators
Code: Select all
$dataMapper = self::DATAMAPPER_PREFIX . "_something";
$this->setMapper($dataMapper::getInstance()); //this line gives error
Code: Select all
$this->setMapper(call_user_func(self::DATAMAPPER_PREFIX . "_something::getInstance"));