无法在cakephp的主题webroot文件夹中获取css和图像文件 [英] Unable to get css and image files in Themes webroot folder of cakephp
问题描述
在访问app / Views / Themed / mythemename / webroot文件夹中的CSS和图像文件时,croogo CMS应用程序存在一个小问题
I have a small problem with croogo CMS application while accessing of css and image files in app/Views/Themed/mythemename/webroot folder
<?php echo $this->Html->css(array('style'));?>
这在视图源中为我提供了CSS参考链接
this gives me a css reference link in view-source
<link rel="stylesheet" type="text/css" href="/croogo/theme/mythemename/css/style.css" />
但是当我单击此链接时(/croogo/theme/mythemename/css/style.css)它给了我我要访问的URL在服务器上找不到
but when i click on this link(/croogo/theme/mythemename/css/style.css) it gives me that the url i'm trying to access is not found on the server
推荐答案
这是通过添加json文件完成的即
app / View / Themed / MyThemeName / webroot / theme.json文件。
,请检查
文档此处
it was done by adding json file i.e.
app/View/Themed/MyThemeName/webroot/theme.json file.
, please check
the documentation here
这篇关于无法在cakephp的主题webroot文件夹中获取css和图像文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!