$plugin_info issue (SOLVED) - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Developer Discussions (http://get-simple.info/forums/forumdisplay.php?fid=8) +--- Thread: $plugin_info issue (SOLVED) (/showthread.php?tid=3689) |
$plugin_info issue (SOLVED) - mikeh - 2012-10-17 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 $plugin_info issue (SOLVED) - mikeh - 2012-10-17 Easy enough fix, right before including the admin/inc/common.php file I put: Code: $load['plugin'] = true; $plugin_info issue (SOLVED) - n00dles101 - 2012-10-17 8), was just hunting that down for you..... $plugin_info issue (SOLVED) - shawn_a - 2012-10-17 Yeah the source is littered with that, I never figured out what its purpose was. |