我正在尝试将模板添加到cakephp 2.该网站名为Calm,可从以下链接中找到。我的问题是它没有正确加载。该指令简单地将文件放在正确的目录中,但这并不简单。我下载文件并在webroot中
I place index.html in the view.layout and call it test.ctp
I place the style.css in /css
I place all the Js file in /js
我将所有图像路径更改为“images /”
布局确实加载但没有图像加载,我怀疑js不起作用
答案 0 :(得分:-1)
将index.html重命名为index.ctp,默认cakephp图像目录是' / img',如果你想使用自己的,请尝试使用斜杠```$ this-> Html->的启动路径;图像(' /images/your.jpg')``