New Zenner
- Join Date:
- Feb 2018
- Posts:
- 21
- Plugin Contributions:
- 0
What is the correct way to include files inside Encapsulated Plugins?
https://docs.zen-cart.com/dev/plugins/encapsulated_plugins/converting/
**Explicit include or require of storefront files **
TBD
TBD really isn't very helpful...
I've been trying to convert the addons I use to encapsulated for easier management and upgrading.
lots of them have lines like ```
require DIR_WS_CLASSES . 'sitemapxml.php';
I realize in the case of classes it should be using autoloading, but that doesn't solve all the "require" problems and it requires making huge changes that I don't want to deal with to sometimes very complex addons that just need small patches to work encapsulated.
What is the correct way to include files inside Encapsulated Plugins?