2016-10-04 12 views
0

htmlファイルへのリンクを表示する必要があります。このファイルのパスは、ルートfolder/test/index.htmlです。私は使用しようとしましたcakephpのHTMLファイルへのリンク

まだ運がありません。

+0

uは何を意味するかのコード? –

答えて

1

あなたの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'); 
関連する問題