我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

Yii2形式在bootstrap模态内

In case of putting ActiveForm inside bootstrap modal, all assets registered again, causing jquery conflict and affects performance. How can i control assets registered from ActiveForm noting that I need its validation and not need other scripts.

enter image description here

Insert this code before: return $this->renderAjax()

Yii::$app->assetManager->bundles = [
  'yii\bootstrap\BootstrapPluginAsset' => false,
  'yii\bootstrap\BootstrapAsset' => false,
  'yii\web\JqueryAsset' => false,
];

近期文章

  • 获取Smarty模板(传递数据)为字符串
  • 过滤MySQL查询时间戳字段之间的差异
  • 使用模板.phtml中的interact.js的magento动态多维数据集
  • 我想找到两个日期的完成百分比?
  • Xdebug远程调试 - 在步骤中崩溃,步入等
  • PDO显示除“未找到表格”之外的所有例外情况
  • 让php从Mysql自动填充电子邮件地址
  • 将Android Studio连接到Web服务到SQL Server
  • 从字符串中提取所有<a href="#"># </a>标记的最佳方法是什么
  • 使用PHP计算解析时地理点之间的距离[关闭]
  • ffmpeg视频缩略图大小
  • 在帐户页面上获取自动增量值(登录系统)
  • .js或.php文件未运行,除非页面链接以.html结尾
  • 批处理文件错误句柄
  • 在注册时隐藏BuddyPress中的“名称”字段
  • msg不使用curl发送
  • Dropzone.js没有提交文件
  • Symfony Doctrine没有重复的价值
  • 解析错误:语法错误T_VARIABLE [重复]
  • 如何在MySQL,opencart中更新时间

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华