method registerPluginClasses documentation in bbn\Mvc\Controller
Register a plugin class using spl_autoload.
function($plugin_path)
{
spl_autoload_register(
function ($class_name) use ($plugin_path) {
if (
(strpos($class_name, '/') === false)
&& (strpos($class_name, '.') === false)
) {
$cls = explode('\\', $class_name);
$path = implode('/', $cls);
if (file_exists($plugin_path . 'lib/' . $path . '.php')) {
include_once $plugin_path . 'lib/' . $path . '.php';
}
}
}
);
return $this;
}
Register a plugin class using spl_autoload. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2025
BBN Solutions