Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/backbone.js/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
cakephp中HTML文件的链接_Php_Cakephp_Hyperlink_Href - Fatal编程技术网

cakephp中HTML文件的链接

cakephp中HTML文件的链接,php,cakephp,hyperlink,href,Php,Cakephp,Hyperlink,Href,我需要显示链接到html文件。此文件的路径是root文件夹/test/index.html。我尝试使用 $this->URL->build, href 但仍然没有运气。将HTML文件放在cakephp webroot文件夹中 webroot/ index.php css/ img/ js/ test/ <--- html content index.html other.html webroot/ index.php css/ img/

我需要显示链接到html文件。此文件的路径是root
文件夹/test/index.html
。我尝试使用

$this->URL->build, href

但仍然没有运气。

将HTML文件放在cakephp webroot文件夹中

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

test/将HTML文件放在cakephp webroot文件夹中

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

测试/你的意思是什么代码?你的意思是什么代码?