I am currently working on a shop. The shop is multi country and multilanguage for everything. Think of countries like Swiss: 1 currency, but 3 languages.
At this moment I want to do the configuration of the shop as a module. For this I need my shop classes, to change the content of these options. The classes are in assets/snippets/shop/.
When I include the main class in a module, I get an error:
include_once(assets/snippets/shop/class_main.inc.php) [function.include-once]: failed to open stream: No such file or directory in....
For me, it seems to be as the modules can only have includes based in the manager path.
Can someone tell me if I’m right or wrong?
Thanks
Gone away and found a better place to stay
-
☆ A M B ☆
- 24,524 Posts
Try ../assets/snippets/shop/filename.php to get the path up one from the /manager/index.php, where a module’s code is run.
Thanks, Susan. I was to blind to think about this on my own.
Also changed my initialization class, where all other includes are done and added a path parameter with a default. The default is the path for the snippets.
Gone away and found a better place to stay