Totally Zenned
- Join Date:
- Aug 2007
- Location:
- Gijón, Asturias, Spain
- Posts:
- 2,866
- Plugin Contributions:
- 7
Using an admin observer only with an admin tool
The example for an observer
https://www.zen-cart.com/wiki/index.php/Developers_API_Tutorials
details having a dedicated file for the observer, and the autoloader to load it...meaning this observer class is always loaded on all pages.
If I only want to use a notifier for a specific admin-tool plugin, can I not just put that observer class in that file, so it is only loaded when needed?
I have tried it and it didn't work.