當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Wekit::run方法代碼示例

本文整理匯總了PHP中Wekit::run方法的典型用法代碼示例。如果您正苦於以下問題:PHP Wekit::run方法的具體用法?PHP Wekit::run怎麽用?PHP Wekit::run使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Wekit的用法示例。


在下文中一共展示了Wekit::run方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: error_reporting

<?php

error_reporting(E_ERROR | E_PARSE);
require './src/wekit.php';
$components = array('router' => array());
Wekit::run('inform', $components);
開發者ID:fanqimeng,項目名稱:4tweb,代碼行數:6,代碼來源:windid.php

示例2: error_reporting

<?php

/**
 * api.php class file.
 *
 * @author Tongle Xu <xutongle@gmail.com>
 * @link http://www.tintsoft.com/
 * @copyright Copyright &copy; 2009-2013 TintSoft Development Co., LTD
 * @license http://www.tintsoft.com/html/about/copyright/
 * @version $Id: api.php 623 2013-07-29 03:40:03Z 85825770@qq.com $
 */
error_reporting(E_ALL);
//開發
//Error_reporting(E_ERROR | E_WARNING | E_PARSE);//線上
require_once 'src/wekit.php';
Wekit::run('Api');
開發者ID:hubs,項目名稱:yuncms,代碼行數:16,代碼來源:api.php

示例3: error_reporting

<?php

error_reporting(E_ALL ^ E_NOTICE | E_STRICT);
require '../../src/wekit.php';
$components = array('router' => array());
Wekit::run('windid', $components);
開發者ID:sanzhumu,項目名稱:nextwind,代碼行數:6,代碼來源:index.php

示例4: session_start

<?php

session_start();
error_reporting(E_ERROR | E_PARSE);
if (isset($_SESSION['op'])) {
    $op = $_SESSION['op'];
    $user = $_SESSION['user'];
}
require './src/wekit.php';
$_SESSION['op'] = $op;
$_SESSION['user'] = $user;
$components = array('router' => array());
Wekit::run('windidnotify', $components);
開發者ID:BTSnowball,項目名稱:BTSnowball_Users_Hand,代碼行數:13,代碼來源:windid.php

示例5: error_reporting

<?php

/*
* used to calculate shop sales everyday
*/
error_reporting(E_ERROR | E_PARSE);
$_SERVER['REQUEST_URI'] = 'schedule';
$_SERVER['HTTP_X_REWRITE_URL'] = 'schedule';
$_SERVER['ORIG_PATH_INFO'] = 'schedule';
$_SERVER['HTTP_HOST'] = 'www.diancanyo.com';
define('TT', dirname(__FILE__) . DIRECTORY_SEPARATOR);
include TT . '../src/wekit.php';
Wekit::run('phpwind');
$startDate = '2013-08-01';
$isfirstrun = false;
//if it is first time run, then need to calculate the data from start date
date_default_timezone_set('Asia/Shanghai');
$today = date('Y-m-d H:i:s');
echo "today:" . $today;
if ($isfirstrun) {
    while ($startDate < $today) {
        calDailySale($startDate);
        //prepare next day
        $fromDateArray = getdate(strtotime($startDate));
        $nextday = mktime(0, 0, 0, $fromDateArray['mon'], $fromDateArray['mday'] + 1, $fromDateArray['year']);
        $startDate = date('Y-m-d', $nextday);
    }
} else {
    //if it is not first time run, then just cal previous
    $fromDateArray = getdate(strtotime($today));
    $nextday = mktime(0, 0, 0, $fromDateArray['mon'], $fromDateArray['mday'] - 1, $fromDateArray['year']);
開發者ID:fanqimeng,項目名稱:4tweb,代碼行數:31,代碼來源:shopsaledaily.php

示例6: error_reporting

<?php

error_reporting(E_ERROR | E_PARSE);
require '../../src/wekit.php';
Wekit::run('windidadmin', array('router' => array()));
開發者ID:YoursBoss,項目名稱:nextwind,代碼行數:5,代碼來源:admin.php

示例7: error_reporting

<?php

/**
 * command.php class file.
 *
 * @author Tongle Xu <xutongle@gmail.com>
 * @link http://www.tintsoft.com/
 * @copyright Copyright &copy; 2009-2013 TintSoft Development Co., LTD
 * @license http://www.tintsoft.com/html/about/copyright/
 * @version $Id: leapsc.php 620 2013-07-29 03:32:10Z 85825770@qq.com $
 */
error_reporting(E_ALL);
//開發
//Error_reporting(E_ERROR | E_WARNING | E_PARSE);//線上
require_once 'src/wekit.php';
Wekit::run('Command');
開發者ID:hubs,項目名稱:yuncms,代碼行數:16,代碼來源:leapsc.php

示例8: error_reporting

<?php

/**
 * 入口文件
 *
 * @author Tongle Xu <xutongle@gmail.com>
 * @link http://www.tintsoft.com/
 * @copyright Copyright &copy; 2009-2013 TintSoft Development Co., LTD
 * @license http://www.tintsoft.com/html/about/copyright/
 * @version $Id: index.php 623 2013-07-29 03:40:03Z 85825770@qq.com $
 */
error_reporting(E_ALL);
//開發
//Error_reporting(E_ERROR | E_WARNING | E_PARSE);//線上
require_once 'src/wekit.php';
Wekit::run('Web');
開發者ID:hubs,項目名稱:yuncms,代碼行數:16,代碼來源:index.php

示例9: error_reporting

<?php

error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING);
require '../src/wekit.php';
Wekit::run('install');
開發者ID:YoursBoss,項目名稱:nextwind,代碼行數:5,代碼來源:install.php


注:本文中的Wekit::run方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。