I have a plugin which extends deliveryAdRender and hooks postAdRender for custom macros generation. I need to get a campaign name for this macros.
When I try to include lib/OA/Dal.php and call OA_Dal::factoryDO('campaigns');
I see error Fatal error: Cannot redeclare _pear_call_destructors() in/usr/share/pear/PEAR.phpon line771
PHP version is 5.5.38
Maybe I do something wrong with configuration and you have some config option to pass DB object as dependency for my hook?
How to use OA_Dal::factoryDO in deliveryAdRender plugin?
in For Developers
Posted
I have a plugin which extends deliveryAdRender and hooks postAdRender for custom macros generation. I need to get a campaign name for this macros.
When I try to include lib/OA/Dal.php and call OA_Dal::factoryDO('campaigns');
I see error Fatal error: Cannot redeclare _pear_call_destructors() in /usr/share/pear/PEAR.php on line 771
PHP version is 5.5.38
Maybe I do something wrong with configuration and you have some config option to pass DB object as dependency for my hook?