foreach (array_keys(\File::read_dir(APPPATH . '..' . DS . 'plugins' . DS, 1)) as $plugin_name) { $plugin_path = \Fuel::add_module($plugin_name); $plugin_inst = "\\$plugin_name\\controller_$plugin_name"; $plugins_info[$plugin_name] = $plugin_inst::info(); } $view->plugins = $plugins_info;
$plugins_info[$plugin_name] = call_user_func($plugin_inst.'::info');
call_user_method
$plugin_inst = "\\$plugin_name\\controller_$plugin_name";
$plugins_info[$plugin_name] = $plugin_inst::info();
foreach (array_keys(\File::read_dir(APPPATH . '..' . DS . 'plugins' . DS, 1)) as $plugin) { \Fuel::add_module($plugin); $plugins_info[$plugin] = call_user_func("\\$plugin\\controller_$plugin" . '::info'); } $view->plugins = $plugins_info;
It looks like you're new here. If you want to get involved, click one of these buttons!