예제 #1
0
 public static function run($config)
 {
     self::$config = $config;
     self::init_db();
     self::init_view();
     self::init_controllor();
     self::init_method();
     C(self::$controller, self::$method);
 }
예제 #2
0
<?php

//入口文件
error_reporting(0);
session_start();
header("Content-type: text/html; charset=utf-8");
//倒入config文件和框架核心哭文件
require_once 'config/config.php';
require_once 'framework/xtzlyp.php';
XTZLYP::run($config);