链接到 cakephp 中的 HTML 个文件
Links to HTML files in cakephp
我需要将 link 显示到 html 文件。此文件的路径是根 folder/test/index.html
。我尝试使用
$this->URL->build, href
但还是没有运气。
将您的 HTML 文件放入 cakephp webroot 文件夹。
webroot/
index.php
css/
img/
js/
test/ <--- html content
index.html
other.html
建立链接:
<?php echo $this->Html->link('LINK 1','/test/index.html');
我需要将 link 显示到 html 文件。此文件的路径是根 folder/test/index.html
。我尝试使用
$this->URL->build, href
但还是没有运气。
将您的 HTML 文件放入 cakephp webroot 文件夹。
webroot/
index.php
css/
img/
js/
test/ <--- html content
index.html
other.html
建立链接:
<?php echo $this->Html->link('LINK 1','/test/index.html');