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

链接到cakephp中的HTML文件

I need to show link to html file. The path to this file is root folder/test/index.html. I try using

$this->URL->build, href

but still no luck.

Put your HTML files inside cakephp webroot folder.

webroot/
  index.php
  css/
  img/
  js/
  test/   <--- html content
   index.html
   other.html

build links:

 <?php echo $this->Html->link('LINK 1','/test/index.html');

近期文章

  • Elasticsearch不允许在日期字段中索引null
  • 无法在WP网站上显示Wordpress版本?
  • 如果嵌入存在就放松
  • 基于PHP中的其他值循环遍历值
  • 使用自定义CLI命令运行doctrine控制台
  • 强制登录页面首先显示
  • 无法从webservice ionic 1框架检索数据
  • 如何使用PHP进行直播?
  • 从php生成的粗体表列
  • WordPress网站内容未更新
  • 参数是数组还是可调用时如何执行函数?
  • 如何在Wordpress中设置会话和Cookie中的动态变量
  • 如何使用带有指定格式字符串的doctrine 2的CURRENT_DATE()函数?
  • 生成/存储/读取安全MCRYPT盐
  • 使用posts_groupby的Wordpress wp_query过滤器 - 如何在连接表中COUNT值?
  • Cakephp - 使用'foreach'显示数据不会返回任何值
  • 调用控制台命令安全性:从控制器操作检查产生锁定文件未找到响应
  • 无法在CI中创建管理员会话
  • Laravel 5.3学习if语句
  • 在Prestashop 1.6.x中多次调用getOrderShippingCost()

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华