2016-12-30 14 views
0

私はローカルでビルドしていますが、プロダクションではアップロードしていますが、プロダクションでは変数がいくつか表示されますが、どこから来たのか分かりません。カートが空でない場合はここで変数がどこから来たのかを見分ける方法は?

は絵が

enter image description here

あるので、「0」カートが2つの項目が含まれている場合は、「0」は、2つになり、表示されます。

私はセッションから来たと思っていましたが、yii2デバッグからセッションをチェックすると、値が "0"のセッションはありません。

「0」は、それはから来るか、私は忘れている場合、私は知らないここ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.... 

あるのです<!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"> 

前excactly表示されますエコーはどこですか?

どこから来たのかを特定して削除できますか?

あなたはより多くの情報が必要な場合は、ちょうどそれを見つけるechoが存在しますので、それはCartControllerアクションindexから来ることが<!DOCTYPE html>の前に現れるので、私は

答えて

0

をお知らせください。

関連する問題