Другая интерпретация реестра

This commit is contained in:
CORP\phedor 2018-04-20 18:03:39 +03:00
parent 40fad0e75b
commit aaa9c2e1bf
21 changed files with 156 additions and 92 deletions

View file

@ -5,13 +5,14 @@
*/
namespace ctiso\Controller;
use ctiso\Path,
ctiso\Registry,
ctiso\Database\PDOStatement;
class Service
{
public $viewPath = [];
public $webPath = [];
public $registry; // Registry->getInstance
public /*.Registry.*/$config;
public $template;
public $templatePath;
public $COMPONENTS_WEB;
@ -33,7 +34,7 @@ class Service
*/
private function getModelPath($name)
{
return Path::join (CMS_PATH, "model", $name . ".php");
return Path::join ($this->config->get('system', 'path'), "model", $name . ".php");
}
/**