Yii2 如何识别变量的来源?

Yii2 如何识别变量的来源?,yii2,Yii2,我在本地建设然后上传到生产,但在生产中我有一些变量出现,但我不知道是从哪里来的 这是照片 因此,如果购物车不是空的,“0”将出现,如果购物车包含两个项目,“0”将是两个 我以为它来自session,但当我从yii2调试检查session时,没有值为“0”的session “0”出现在 万一我不知道是从哪里来的,或者我忘了回声在哪里 我能找出它的来源并把它移走吗 如果您需要更多信息,请让我知道,因为它出现在之前,所以它来自CartController操作索引将有回音只要找到它即可 0</b

我在本地建设然后上传到生产,但在生产中我有一些变量出现,但我不知道是从哪里来的

这是照片

因此,如果购物车不是空的,“0”将出现,如果购物车包含两个项目,“0”将是两个

我以为它来自session,但当我从yii2调试检查session时,没有值为“0”的session

“0”出现在

万一我不知道是从哪里来的,或者我忘了回声在哪里

我能找出它的来源并把它移走吗


如果您需要更多信息,请让我知道,因为它出现在
之前,所以它来自
CartController
操作
索引
将有
回音
只要找到它即可

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">
<?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....