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

在YII2框架中为css创建绝对URL

I need to convert the following link into absolute url form. Please help me to change this link.

css/bootstrap-datepicker3.css

You should just be able to type:

/css/bootstrap-datepicker3.css

If the "css" directory is within the root of your website, if it is not then you need to direct to that path, for instance if you have to go inside an "assets" folder to get to your "css" folder, the path would be:

/assets/css/bootstrap-datepicker3.css

Hopefully this answers your question.

近期文章

  • 我尝试验证我的架构时出现Doctrine错误
  • PHP - 将数据库信息回显为字符串
  • 在表中复合不同的检索数据?
  • WP编辑器不能在WordPress的前端工作
  • 用php json_encode显示阿拉伯字母
  • PostgreSql大对象通过PHP PDO提交
  • 创建队列/多线程到节点js服务器
  • 使用preg_match匹配此特定模式
  • Jquery / Php聊天脚本,我有一些问题
  • Laravel Routes - 相同的路线,不同的控制器
  • 如何在php中获取所请求用户的域名?
  • 将HTML电子邮件转换为“Well Formed XHTML Code”
  • 如果用户登录我的网站,如何隐藏此表单?
  • 将Laravel多对多关系导出到csv
  • 如何在php会话数组中添加第三个值?
  • strpos()无法识别PHP字符串编码?
  • 多个条件搜索查询构建器[symfony2]
  • 在移动试用帐户中未收到twilio短信
  • PHP - 为什么我不能摆脱这个会话id cookie?
  • 在PHP标记内使用site_url()回显图像标记

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华