/** * 启动引擎函数 * @param array $config 配置信息 * @return [type] */ public static function run($config) { self::$config = $config; self::db_init(); self::view_init(); self::$controller = self::controller(); self::$method = self::method(); C(self::$controller, self::$method); }
<?php header("content-type:text/html; charset=utf-8"); error_reporting(0); DEFINE("ADMIN_PATH", dirname(__FILE__)); require ADMIN_PATH . "/admin/admin_config.php"; require ADMIN_PATH . "/admin/wzl.class.php"; date_default_timezone_set("PRC"); session_start(); WZL::run($config);