Exemplo n.º 1
0
<?php

/**
 * 系统入口文件
 */
require_once 'include/define.php';
require_once 'include/import.php';
require_once 'include/init.php';
error_reporting(E_ERROR & ~E_NOTICE);
die("aaa");
//请求->路由->过滤->分发->响应
$controller = Leb_Controller::getInstance();
$controller->run();
Exemplo n.º 2
0
<?php

/**
 * 程序入口(本地请求),后台定时任务使用
 *
 * @category   Leb
 * @package    Leb_Bootstrap
 * @copyright
 * @license
 * php console.php index default admin
 */
require_once "config/init_console.php";
require_once 'framework/loader.php';
Leb_Loader::setAutoload();
$controller = Leb_Controller::getInstance(true);
$controller->run();