yii\base\ErrorException
in /data/webdir/youxiniao/modules/wap/controllers/SiteController.php
45464748495051525354555657585960616263
'fixedVerifyCode' =& YII_ENV_TEST ? 'testme' : null,
public function beforeAction($action) {
$this-&urlGameDetail = Url::to('game-detail');
$this-&urlArticleDetail = Url::to('article-detail');
$HTTP_USER_AGENT = strtolower($_SERVER['HTTP_USER_AGENT']);
if(strpos($HTTP_USER_AGENT, 'android')){
$this-&agent = 'Android';
}elseif(strpos($HTTP_USER_AGENT, 'iphone')){
$this-&agent = 'iphone';
}elseif(strpos($HTTP_USER_AGENT, 'ipad')){
$this-&agent = 'ipad';
}elseif(strpos($HTTP_USER_AGENT, 'windows phone')){
$this-&agent = 'wp';
}elseif(strpos($HTTP_USER_AGENT, 'windows nt')){
in /data/webdir/youxiniao/modules/wap/controllers/SiteController.php
(8, 'Undefined index: HTTP_USER_AGENT', '/data/webdir/youxiniao/modules/w...', 54, ...)
48495051525354555657585960
public function beforeAction($action) {
$this-&urlGameDetail = Url::to('game-detail');
$this-&urlArticleDetail = Url::to('article-detail');
$HTTP_USER_AGENT = strtolower($_SERVER['HTTP_USER_AGENT']);
if(strpos($HTTP_USER_AGENT, 'android')){
$this-&agent = 'Android';
}elseif(strpos($HTTP_USER_AGENT, 'iphone')){
$this-&agent = 'iphone';
}elseif(strpos($HTTP_USER_AGENT, 'ipad')){
$this-&agent = 'ipad';
in /data/webdir/youxiniao/vendor/yiisoft/yii2/base/Controller.php
app\modules\wap\controllers\SiteController::beforeAction(yii\base\InlineAction)
148149150151152153154155156157158159160
if ($runAction && $this-&beforeAction($action)) {
// run the action
$result = $action-&runWithParams($params);
$result = $this-&afterAction($action, $result);
// call afterAction on modules
in /data/webdir/youxiniao/vendor/yiisoft/yii2/base/Module.php
('game-detail', ['filename' => 'waiwaixiyou'])
517518519520521522523524525526527528529
$parts = $this-&createController($route);
if (is_array($parts)) {
/* @var $controller Controller */
list($controller, $actionID) = $
$oldController = Yii::$app-&
Yii::$app-&controller = $
$result = $controller-&runAction($actionID, $params);
if ($oldController !== null) {
Yii::$app-&controller = $oldC
in /data/webdir/youxiniao/vendor/yiisoft/yii2/web/Application.php
('wap/site/game-detail', ['filename' => 'waiwaixiyou'])
96979899100101102103104105106107108
$params = $this-&catchA
unset($params[0]);
Yii::trace(&Route requested: '$route'&, __METHOD__);
$this-&requestedRoute = $
$result = $this-&runAction($route, $params);
if ($result instanceof Response) {
$response = $this-&getResponse();
if ($result !== null) {
$response-&data = $
in /data/webdir/youxiniao/vendor/yiisoft/yii2/base/Application.php
(yii\web\Request)
374375376377378379380381382383384385386
$this-&state = self::STATE_BEFORE_REQUEST;
$this-&trigger(self::EVENT_BEFORE_REQUEST);
$this-&state = self::STATE_HANDLING_REQUEST;
$response = $this-&handleRequest($this-&getRequest());
$this-&state = self::STATE_AFTER_REQUEST;
$this-&trigger(self::EVENT_AFTER_REQUEST);
$this-&state = self::STATE_SENDING_RESPONSE;
$response-&send();
in /data/webdir/youxiniao/web/index.php
6789101112
require(__DIR__ . '/../vendor/autoload.php');
require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');
$config = require(__DIR__ . '/../config/web.php');
(new yii\web\Application($config))-&run();
'filename' =& 'waiwaixiyou',