本文整理汇总了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);
示例2: error_reporting
<?php
/**
* api.php class file.
*
* @author Tongle Xu <xutongle@gmail.com>
* @link http://www.tintsoft.com/
* @copyright Copyright © 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');
示例3: error_reporting
<?php
error_reporting(E_ALL ^ E_NOTICE | E_STRICT);
require '../../src/wekit.php';
$components = array('router' => array());
Wekit::run('windid', $components);
示例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);
示例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']);
示例6: error_reporting
<?php
error_reporting(E_ERROR | E_PARSE);
require '../../src/wekit.php';
Wekit::run('windidadmin', array('router' => array()));
示例7: error_reporting
<?php
/**
* command.php class file.
*
* @author Tongle Xu <xutongle@gmail.com>
* @link http://www.tintsoft.com/
* @copyright Copyright © 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');
示例8: error_reporting
<?php
/**
* 入口文件
*
* @author Tongle Xu <xutongle@gmail.com>
* @link http://www.tintsoft.com/
* @copyright Copyright © 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');
示例9: error_reporting
<?php
error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING);
require '../src/wekit.php';
Wekit::run('install');