类别';yii\helpers\HTMLPurifier';未在生产中找到
错误表示在生产环境中找不到,我认为可能是因为类尚未导入,或者可能是找不到文件 但是我已经用类别';yii\helpers\HTMLPurifier';未在生产中找到,yii,yii2,Yii,Yii2,错误表示在生产环境中找不到,我认为可能是因为类尚未导入,或者可能是找不到文件 但是我已经用 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\U
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
这是我使用HTMLPurifier
$model2->isi_pesan = HTMLPurifier::process($model->jawaban."<br />------------ Reply --------------<br />".$model->isi_pesan);
$model2->isi_-pesan=HTMLPurifier::process($model->jawaban.“
----Reply---------
“$model->isi_-pesan);
但我可以在本地环境中很好地运行操作,并且控制器代码是相同的
那怎么了
如果您需要更多信息,请告诉我。请使用yii\helpers\HtmlPurifier代码>相反您说您的本地环境没有问题,但您部署到在线(生产)环境却无法工作。请检查生产环境是否已存在BaseHtmlPurifier.php和HtmlPurifier.php如果详细说明为什么要修复此问题,此答案会更好。@chwarr也许您也可以发布答案。