method setCachedModel documentation in bbn\Mvc
This will set the model in cache
function($path, array $data, bbn\Mvc\Controller $ctrl, $ttl = 10)
{
if (\is_null($data)) {
$data = $this->data;
}
if ($route = $this->router->route(router::parse($path), 'model')) {
$model = new Model($this->db, $route, $ctrl, $this);
$model->setCache($data, '', $ttl);
}
}
This will set the model in cache 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