method subpluginModel documentation in bbn\Mvc

Get a subplugin model (a plugin inside the plugin directory of another plugin).

function(string $path, array $data, bbn\Mvc\Controller $ctrl, string $plugin, string $subplugin, int $ttl = NULL) { if ( $plugin && $subplugin && ($route = $this->router->routeSubplugin(router::parse($path), 'model', $plugin, $subplugin)) ) { $model = new Model($this->db, $route, $ctrl, $this); $res = $ttl ? $model->getFromCache($data, '', $ttl) : $model->get($data); return $res; } throw new \Exception( X::_( "Impossible to find the model %s from subplugin %s in plugin %s", $path, $subplugin, $plugin ) ); }

Get a subplugin model (a plugin inside the plugin directory of another plugin). 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.