duaabhuv188411 2016-10-04 08:49
浏览 73
已采纳

链接到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.

  • 写回答

1条回答 默认 最新

  • ds355020 2016-10-04 09:20
    关注

    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');
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?