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
Release: 2016-07-12 08:57:38
Original
1083 people have browsed it

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

Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template