Prestashop 1.6 get instance of module class

前端 未结 1 1066
心在旅途
心在旅途 2021-01-07 00:31

I have an overridden class OrderConfirmationControllerCore.

I have a modul with class Abra.

I need to get an instance of Abra

相关标签:
1条回答
  • 2021-01-07 01:03
    $abraSetDocs = Module::getInstanceByName('abra');
    

    Note that 'abra' is the name of the module ($this->name from the module __construct()), not the class name.

    0 讨论(0)
提交回复
热议问题