I think I understand the difference between _create and _init in widget definitions (see for instance this question), but I’m still not certain about the purpose for the distinction. What sorts of setup tasks go in _create() or in _init()? What goes wrong if the widget author chooses the wrong one?
I think I understand the difference between _create and _init in widget definitions (see
Share
From:
Also:
If the author uses
_init()when_create()should have been coded, the result will be that the code in_init()will be executed once per widget instantiation.