Ejemplo n.º 1
0
 public static function getInstance()
 {
     if (self::$instance === null) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Ejemplo n.º 2
0
 public static function getInstance()
 {
     if (self::$instance === null) {
         self::$instance = new self();
         // подключаем хелпер основного шаблона
         if (!cmsCore::includeFile('templates/' . self::$instance->getName() . '/assets/helper.php')) {
             cmsCore::loadLib('template.helper');
         }
     }
     return self::$instance;
 }