本文整理汇总了PHP中Sys::ini方法的典型用法代码示例。如果您正苦于以下问题:PHP Sys::ini方法的具体用法?PHP Sys::ini怎么用?PHP Sys::ini使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Sys
的用法示例。
在下文中一共展示了Sys::ini方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: run
public static function run($p = null, $root = null, $routes = true, $session = true, $whoops = true)
{
ob_start();
//
self::$page = $p;
self::$root = $root;
//
//session
require __DIR__ . '/../core/Storage/Session.php';
if ($session) {
Session::start(__DIR__ . '/../app/storage/session');
}
//
require __DIR__ . '/../core/Access/ErrorHandler.php';
// Config
require __DIR__ . '/../core/Config/Config.php';
require __DIR__ . '/../core/Config/Exceptions/ConfigException.php';
//Maintenance
require __DIR__ . '/../core/Maintenance/Maintenance.php';
//Objects
require __DIR__ . '/../core/Objects/Vars.php';
require __DIR__ . '/../core/Objects/String/String.php';
require __DIR__ . '/../core/Objects/String/Exceptions/StringOutIndexException.php';
// Access
require __DIR__ . '/../core/Access/Path.php';
// Set the error log
ini_set("log_errors", 1);
ini_set("error_log", __DIR__ . '/../app/storage/logs/fiesta.log');
// Set Whoops error handler
if ($whoops) {
ErrorHandler::ini(self::$root);
}
//
//require __DIR__.'/../core/MVC/Templete.php';
require __DIR__ . '/../core/Objects/Exception.php';
require __DIR__ . '/../core/Faker.php';
require __DIR__ . '/../core/Storage/Cookie.php';
//routes
// old
//require __DIR__.'/../core/Access/Routes_2.php';
// new
require __DIR__ . '/../core/Router/Routes.php';
require __DIR__ . '/../core/Router/Route.php';
require __DIR__ . '/../core/Router/Exceptions/RouteNotFoundException.php';
// Caches
require __DIR__ . '/../core/Caches/Caches.php';
require __DIR__ . '/../core/Caches/Cache.php';
require __DIR__ . '/../core/Caches/FileCache.php';
require __DIR__ . '/../core/Caches/DatabaseCache.php';
require __DIR__ . '/../core/Caches/Exceptions/DriverNotFoundException.php';
require __DIR__ . '/../core/Storage/Storage.php';
require __DIR__ . '/../core/Security/Auth.php';
require __DIR__ . '/../core/Objects/Table.php';
// Database
require __DIR__ . '/../core/Database/Schema.php';
require __DIR__ . '/../core/Database/Migration.php';
require __DIR__ . '/../core/Database/Seeder.php';
require __DIR__ . '/../core/Database/Database.php';
require __DIR__ . '/../core/Database/Drivers/MySql.php';
require __DIR__ . '/../core/Database/Exceptions/DatabaseArgumentsException.php';
require __DIR__ . '/../core/Database/Exceptions/DatabaseConnectionException.php';
require __DIR__ . '/../core/Access/Url.php';
require __DIR__ . '/../core/Hypertext/Pages.php';
require __DIR__ . '/../core/Objects/DateTime.php';
require __DIR__ . '/../core/Objects/Sys.php';
require __DIR__ . '/../core/Http/Links.php';
require __DIR__ . '/../core/Objects/Base.php';
require __DIR__ . '/../core/Libs.php';
require __DIR__ . '/../core/Hypertext/Res.php';
require __DIR__ . '/../core/Hypertext/Input.php';
require __DIR__ . '/../core/License.php';
require __DIR__ . '/../core/Hypertext/Cookie.php';
//Languages
require __DIR__ . '/../core/Lang/Lang.php';
require __DIR__ . '/../core/Lang/Exceptions/LanguageKeyNotFoundException.php';
// MVC - model
require __DIR__ . '/../core/MVC/Model/Model.php';
require __DIR__ . '/../core/MVC/Model/ModelArray.php';
require __DIR__ . '/../core/MVC/Model/Exceptions/ForeingKeyMethodException.php';
require __DIR__ . '/../core/MVC/Model/Exceptions/ColumnNotEmptyException.php';
require __DIR__ . '/../core/MVC/Model/Exceptions/ManyPrimaryKeysException.php';
require __DIR__ . '/../core/MVC/Model/Exceptions/PrimaryKeyNotFoundException.php';
// MVC - View
require __DIR__ . '/../core/MVC/View/View.php';
require __DIR__ . '/../core/MVC/View/Libs/Template.php';
require __DIR__ . '/../core/MVC/View/Libs/Views.php';
require __DIR__ . '/../core/MVC/View/Exceptions/ViewNotFoundException.php';
require __DIR__ . '/../core/Hypertext/HTML.php';
require __DIR__ . '/../core/Security/Encrypt.php';
require __DIR__ . '/../core/Security.php';
//require __DIR__.'/../core/MVC/Model.php';
// require __DIR__.'/../core/MVC/View.php';
require __DIR__ . '/../core/MVC/Controller.php';
require __DIR__ . '/../core/Http/Error.php';
require __DIR__ . '/../core/Hypertext/Script.php';
require __DIR__ . '/../core/Http/Root.php';
require __DIR__ . '/../core/Mail_2.php';
require __DIR__ . '/../core/Objects/DataCollection.php';
require __DIR__ . '/../core/Debug.php';
// Filesystem
//.........这里部分代码省略.........