Пример #1
0
 public static function getInstance()
 {
     if (!self::$_instance instanceof self) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Пример #2
0
<?php

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2015/11/27
 * Time: 15:23
 */
//require_once './Lib/MyMVC.class.php';
//
//MyMVC::run();
require_once 'Function/function.php';
try {
    $main = TinyMVC::getInstance();
    $main->route();
} catch (Exception $e) {
    echo $e->getMessage();
}