生产中找不到错误,我认为这可能是因为类尚未导入,或者找不到文件。生产中找不到类'yii helpers HTMLPurifier'
,但我已经与
use Yii;
use common\models\TbPesan;
use common\models\TbPesanSearch;
use common\models\TbPesanDest;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\helpers\Url;
use common\component\BeoHelper;
use yii\helpers\HTMLPurifier;
和BaseHtmlPurifier.php
和HtmlPurifier.php
汇入类是存在于vendor/yiisoft/yii2/helpers
这里是我的代码使用3210
$model2->isi_pesan = HTMLPurifier::process($model->jawaban."<br />------------ Reply --------------<br />".$model->isi_pesan);
,但我可以运行动作在我的本地环境中,控制器代码是相同的。
那么,怎么了?
如果您需要更多信息,请让我知道。
如果这个答案扩大了,为什么这是修复,这个答案会更好。 – chwarr
@chwarr也许你也可以发布答案。 –