I have an overridden class OrderConfirmationControllerCore
.
I have a modul with class Abra
.
I need to get an instance of Abra
class in the OrderConfirmationControllerCore
My code is:
class OrderConfirmationController extends OrderConfirmationControllerCore
{
public function init()
{
$abraSetDocs = new Abra();
parent::init();
}
}
This generates error:
Fatal error: Class 'Abra' not found in /../override/controllers/front/OrderConfirmationController.php on line 39
How can I get the instance of the class?
Note that 'abra' is the name of the module ($this->name from the module __construct()), not the class name.