gpt4 book ai didi

php - 使用 Yii 框架注册客户端包时使用 https 而不是 http

转载 作者:太空宇宙 更新时间:2023-11-03 15:03:06 25 4
gpt4 key购买 nike

我仅将 https 用于登录操作,因此当我们发布无效密码时,它将刷新页面并显示验证错误,在这种情况下,https 将阻止所有以 http 开头的 css、js.. 资源。

顺便说一句,我正在使用 Yii 客户端包注册:

  Yii::app()->clientScript->registerPackage('login');

而这里登录的是一个 Assets 包:

  'login' => array(
'js' => array('js/jquery.js', 'js/bootstrap.js', 'js/other.js'),
'css' => array('css/other.css'),
'depends' => array('jquery'),
'basePath' => 'theme'
),

例如,css 文件将弹出并选择要破坏的页面样式。

有什么办法吗?

最佳答案

您可能想查看设置包的 basePath 属性。更多详情:http://www.yiiframework.com/doc/api/1.1/CClientScript#packages-detail

关于php - 使用 Yii 框架注册客户端包时使用 https 而不是 http,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17907579/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com