Hi, using Prestashop 1.6 I'm developing a module (A) that depends on other module (B).
I want to call a function, A::myFunction(), when one object of module B is created.
As far as I know, Prestashop ObjectModel use CRUD actions, so... Could I extend the create method of a module B object class?
I mean something like:
class ModuleAClassModel extends ModuleBClassModel public function create() { myFunction(); parent:create(); }
What I really want is to be warned when a module B object is created, to make some actions.