method customPluginModel documentation in bbn\Mvc

Retrieves a model of a custom plugin.

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

Retrieves a model of a custom 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.