E
E
Evgeny Lavrentiev2014-10-06 19:33:03
Yii
Evgeny Lavrentiev, 2014-10-06 19:33:03

Yii2 htmlpurifier how to fix?

The guys broke their heads, connected according to the documentation www.yiiframework.com/doc-2.0/yii-helpers-htmlpurif... (HtmlPurifieryii) well, I didn’t use it. Now the Yii problem has registered HtmlPurifieryii somewhere and now there is always an error:
Fatal error: Cannot redeclare class yii\helpers\HtmlPurifieryii\BaseYii
Can anyone come across?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Lavrentiev, 2014-10-06
@lavrentiev

Guys hang up, solved the problem, but this is not a solution. HtmlPurifieryii performs a strange action according to the usage instructions followed.
Somehow magically vendor\yiisoft\yii2\BaseYii.php changed namespace to
namespace yii\helpers\HtmlPurifieryii;
What is very strange when there should be a
namespace yii;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question