本文整理匯總了PHP中Cake\Core\App::init方法的典型用法代碼示例。如果您正苦於以下問題:PHP App::init方法的具體用法?PHP App::init怎麽用?PHP App::init使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Cake\Core\App
的用法示例。
在下文中一共展示了App::init方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: microtime
<?php
/**
* Basic Cake functionality.
*
* Handles loading of core files needed on every request
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @since 0.2.9
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
define('TIME_START', microtime(true));
require CAKE . 'basics.php';
use Cake\Core\App;
use Cake\Core\Configure;
App::init();