Hello, I have several include paths in my php.ini file that I need to access from a modx module. How would I get modx to recognize them? They are located in various locations on the webserver I have.
-
MODX Staff
- 10,725 Posts
In the 0.9.x releases, the MODx manager sets the include path explicitly to the manager/includes/ directory. This is legacy behavior and is being addressed for both the Evolution 1.0 and Revolution 2.0 branches which are both in development. Unfortunately, for the time being, you will likely need to create variables to represent the additional include paths you want to use in your module as module parameters and then refer to that path when including the files. That or have your module attempt to set_include_path again, making sure to append your paths to the existing include_path value (which you can get with ini_get).
Thanks, I was able to get it to work when I set a path variable before the include.
Do you have any projection for the 1.0 release date? It sounds like a lot of new features will be implemented.