Made models able to load models.

master 1.2.4
Abel Hoogeveen 3 years ago
parent 9572d27043
commit 55e0848a70

@ -67,12 +67,18 @@ abstract class Model
*/
protected $config;
/**
* @var Models
*/
protected $models;
public function __construct()
{
$this->plugins = Factory::getInstance()->plugins;
$this->libraries = Factory::getInstance()->libraries;
$this->helpers = Factory::getInstance()->helpers;
$this->config = Factory::getInstance()->config;
$this->models = Factory::getInstance()->models;
}
}

Loading…
Cancel
Save