<?php
 namespace App\Mvc; abstract class ModelAbstract extends \Engine\Mvc\ModelAbstract { protected $globalCfg; protected $cfg; protected $lang; protected $globalLang; public function __construct() { $modulePath = getClassNamespace(get_called_class()); $modulePathLang = str_replace("\\", "/", getClassNamespace(get_called_class())); \Engine\Loader_Cfg::getInstance()->loadModule($modulePath); $this->globalLang = \App\Loader_Lang::getInstance()->getGlobal(); $this->lang = \App\Loader_Lang::getInstance()->getSection($modulePathLang); $this->globalCfg = \Engine\Loader_Cfg::getInstance()->getGlobal(); $this->cfg = \Engine\Loader_Cfg::getInstance()->getLocal($modulePath); } } 