method __construct documentation in bbn\Mvc\Model

Models are always recreated and reincluded, even if they have from the same path

They are all created from bbn\Mvc::get_model

function(bbn\Db $db, array $info, bbn\Mvc\Controller $ctrl, bbn\Mvc $mvc) { if (isset($info['path']) && $this->checkPath($info['path'])) { if ($db) { parent::__construct($db); } $this->cacheInit(); $this->_ctrl = $ctrl; $this->_mvc = $mvc; $this->inc = &$mvc->inc; if (is_file($info['file'])) { $this->_path = $info['path']; $this->_file = $info['file']; $this->_checkers = $info['checkers'] ?? []; $this->_plugin_name = $info['plugin_name'] ?? null; $this->_plugin = $info['plugin'] ?? null; } } else{ $this->error("The model ". ($info['path'] ?? null) ." doesn't exist"); } }

Models are always recreated and reincluded, even if they have from the same path 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.