AbanteCart Community
AbanteCart Development => Development Help Needed => Topic started by: sunnykasera3107 on February 05, 2019, 06:40:05 AM
-
Hi,
Currently, Working on Extension Class in the core folder. I am not getting how to access model or how to access db->query from extension class?
When I try to load any model in extension class so it says undefined method of null object. And same for db query.
Anyone please help me. Small hint will be enough to understand it.
Thank You
-
Hi.
You can look into another extension hook for example.
https://github.com/abantecart/abantecart-src/blob/1.2.14/public_html/extensions/banner_manager/core/custom_block_hook.php#L50
-
Awesome.......
Thanks a lot for this help. It works for me. :)