Made models able to load models.
This commit is contained in:
parent
9572d27043
commit
55e0848a70
|
@ -67,12 +67,18 @@ abstract class Model
|
||||||
*/
|
*/
|
||||||
protected $config;
|
protected $config;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Models
|
||||||
|
*/
|
||||||
|
protected $models;
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->plugins = Factory::getInstance()->plugins;
|
$this->plugins = Factory::getInstance()->plugins;
|
||||||
$this->libraries = Factory::getInstance()->libraries;
|
$this->libraries = Factory::getInstance()->libraries;
|
||||||
$this->helpers = Factory::getInstance()->helpers;
|
$this->helpers = Factory::getInstance()->helpers;
|
||||||
$this->config = Factory::getInstance()->config;
|
$this->config = Factory::getInstance()->config;
|
||||||
|
$this->models = Factory::getInstance()->models;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue