2016-12-30 64 views
0

我在当地建设然后在生产中上传,但在生产中我有一些变量出现,但我不知道从哪里来。如何辨别变量来自哪里?

这里是图片

enter image description here

所以“0”,如果购物车不是空的,如果车有2款产品的“0”将有两个出现。

我认为它来自会议,但是当我从yii2调试检查会话没有会话的值是“0”;

“0”出现excactly之前<!DOCTYPE html>

0</br>0</br> 
<!DOCTYPE html> 
<html> 
<head> 
    <meta charset="utf-8"> 
    <meta http-equiv="X-UA-Compatible" content="IE=edge"> 
    <meta http-equiv="Cache-control" content="private,max-age:3600"> 

这是我在这里命名为utama.php观点是部分代码utama.php

<?php 
use yii\helpers\Url; 
use backend\modules\company\assets\HomeAsset; 
use yii\widgets\Breadcrumbs; 
use yii\helpers\Html; 
use frontend\assets\FoAsset; 
use yii\helpers\VarDumper; 
use yii\widgets\ActiveForm; 
use yii\base\View; 
use common\models\TbCustomer; 
use yii\web\JsExpression; 
use common\models\TbKategori; 
use common\component\BeoHelper; 
use common\models\TbSubKategori1; 
use common\models\TbSubKategori2; 
use common\models\TbMenuPromo; 
use yii\authclient\widgets\AuthChoice; 
use kartik\typeahead\Typeahead; 
use common\models\EAktorType; 
use common\models\VwProdukAgent; 


$aset = FoAsset::register($this); 
?> 

//how come "0" can be here? 
<!DOCTYPE html> 
<html> 
<head> 
    <meta charset="utf-8"> 
    <meta http-equiv="X-UA-Compatible" content="IE=edge"> 
    <meta http-equiv="Cache-control" content="private,max-age:3600"> 
so on.... 

在情况下,我不知道是从哪里来的或者我就忘回声在哪里?

我可以发现来自哪里并将其删除吗?

如果您需要了解更多信息,请让我知道

回答

0

,因为它<!DOCTYPE html>之前出现,因此来自CartController行动index会有echo只是找到它。