2012-10-17, 05:51:50
For a custom plugin I have, I have a file in the plugins folder (eg: plugins/plugin_folder/file.php).
I need this file to be able to provide some plain json to some components.
Now, in order to use my classes and functions from the plugin itself I am including the common.php for the file, which then includes the common.php file for the cms if it is not yet loaded.
This has already worked perfect for me until I needed to access the $plugin_info global.
It is empty, the plugins are not being registered. I am just wondering how I can get them to register in this case.
Problem Solved
I need this file to be able to provide some plain json to some components.
Now, in order to use my classes and functions from the plugin itself I am including the common.php for the file, which then includes the common.php file for the cms if it is not yet loaded.
This has already worked perfect for me until I needed to access the $plugin_info global.
It is empty, the plugins are not being registered. I am just wondering how I can get them to register in this case.
Problem Solved