简体   繁体   English

对cakephp视图文件进行了更改,但更改未在浏览器中显示

[英]Made changes to cakephp view files but changes not showing in browser

This one is quit puzzling to me. 这使我不解。 Please help 请帮忙

I baked a cake using root via ssh and everything went well except for the fact that i could not edit the view CTP files in dreamweaver. 我通过ssh使用root烘烤了一块蛋糕,除了我无法在Dreamweaver中编辑视图CTP文件这一事实之外,其他一切都进行得很好。 kept getting "access denied. Permission problem". 不断收到“访问被拒绝。权限问题”。

Via ssh and the cpanel i was able to change the permission to 755, 777. Got an error when attempted to change permission via dreamweaver 通过ssh和cpanel,我能够将权限更改为755、777。尝试通过Dreamweaver更改权限时出现错误

After changing file permission, I still got the error "access denied. permission problem.." 更改文件权限后,仍然出现错误“访问被拒绝。权限问题..”

I then change the USER who owns the file using chown via ssh 然后,我通过ssh使用chown更改拥有该文件的USER

I was then able to edit the file without error. 然后,我可以编辑该文件而不会出现错误。 I viewed the edited file via cpanel and realized that the changes took place. 我通过cpanel查看了修改后的文件,并意识到已进行了更改。 Bravo! 好样的!

However, when i viewed the page in the browser, no changes were apparent. 但是,当我在浏览器中查看页面时,没有明显的变化。

I cleared the cache several times. 我多次清除了缓存。 My tmp folder is chmod 777 我的tmp文件夹是chmod 777

What am i missing? 我想念什么?

Are you using Scaffolding perhaps? 您是否正在使用脚手架 If so, disable it to see what happens. 如果是这样,请将其禁用以查看会发生什么。 Double check if these file names are correct too: Controller, View files and View folder. 再次检查这些文件名是否也正确:Controller,View files和View文件夹。

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

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