Home >Backend Development >PHP Tutorial >Analysis of the reasons why Yii2 inline script loading fails when using Pjax in Yii2, yii2pjax_PHP tutorial

Analysis of the reasons why Yii2 inline script loading fails when using Pjax in Yii2, yii2pjax_PHP tutorial

WBOY
WBOYOriginal
2016-07-12 08:57:38970browse

Analysis of the reasons why Yii2 inline script loading failed when using Pjax in Yii2, yii2pjax

An error occurred when I used defunkt/jquery-pjax to load Yii2’s ActiveForm , normally

The two js of ActiveForm should be loaded first, but the actual situation is

typeError:JQuery(...).yiiActiveForm is not a function.

This issue has been discussed and resolved in the github issues.

Pjax first executes the inline