当前位置: 首页>>代码示例>>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;未经允许,请勿转载。