简体   繁体   English

CakePHP无法加载视图

[英]CakePHP not load views

My layout is divided into 3 parts, Header, Content, Footer. 我的布局分为3个部分,页眉,内容和页脚。

Sometimes when I load a page the cake just returns the Content, or does not load CSS, JavaScript, and the like. 有时,当我加载页面时,蛋糕只返回Content,或者不加载CSS,JavaScript等。

Has anyone had any similar problem? 有没有类似的问题?

I took a look on the links in your last comment. 我查看了您上次评论中的链接。 They both are password protected, although for me the problem is not in cake, rather than in the assets. 它们都受密码保护,尽管对我而言问题不在于蛋糕,而不在于资产。 Actually I just seen this problem in the first load of the page and then the browser cached the resources and couldn't see this any more. 实际上,我只是在页面的第一次加载中看到了此问题,然后浏览器缓存了资源,再也看不到了。

What I mean is that: 我的意思是:

https://asset0.basecamphq.com/sprockets.js?1291422605 took 1.53 sec to load https://asset1.basecamphq.com/stylesheets/print/application.css?1291422668 845 sec to load https://asset0.basecamphq.com/sprockets.js?1291422605加载需要1.53秒https://asset1.basecamphq.com/stylesheets/print/application.css?1291422668加载845秒

I suppose that sometimes they just doesn't load at all. 我想有时候它们根本不会加载。

I see that these files are on separate domain from the app. 我看到这些文件位于与应用程序不同的域中。 If you move these files on the same domain this would improve the performance. 如果将这些文件移到同一域中,则可以提高性能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM