Manol Posted February 13, 2014 Posted February 13, 2014 Hi. Is there a way to know which modules are loaded and in which order? Thanks.
adrian Posted February 13, 2014 Posted February 13, 2014 $modules contains all the loaded modules, so you can foreach through that and echo the $module->name. This returns them in alphabetical order though, so I am not sure how to determine the order they are loaded. Not sure exactly what your requirements are, but if you want to know if a specific module has been loaded at a certain point in the code, this recent post might be helpful: http://processwire.com/talk/topic/5477-check-if-a-module-is-loaded/ 1
ryan Posted February 16, 2014 Posted February 16, 2014 Is there a way to know which modules are loaded and in which order? Also try enabling debug mode in your /site/config.php and look at the Debug link at the bottom of the admin theme. There is a list of all loaded modules (among other things). If you want to see how it's getting that from the code side, then have a look in /wire/templates-admin/debug.inc. 2
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now