public function __construct()
{
//Services
$this->language = OW::getLanguage();
$this->service = OFLOTTERY_BOL_Service::getInstance();
$this->router = OW::getRouter();
$this->feedback = OW::getFeedback();
$this->creditService = OFCREDITSERVICE_BOL_Service::getInstance();
//Variables
$this->userId = OW::getUser()->getId();
$this->pKey = 'oflottery';
}
This works fine.
I have the exact same code in a BOL Service file, but I keep getting an error saying that 'OFCREDITSERVICE_BOL_Service::getInstance(); cannot be found'.
How can it not be found when my other plugins reference this, and the controller for this plugin does too?
Any ideas?