我在Zend框架中有一个网站。我试图在浏览器中打开此站点,将文件的路径传递到地址栏。但是没有内容加载,我面临一个空白页面。关于什么可能是问题的任何想法?
将其添加到您的public / index.php中
/**
* Display all errors when APPLICATION_ENV is development.
*/
if ($_SERVER['APPLICATION_ENV'] == 'development') {
error_reporting(E_ALL);
ini_set("display_errors", 1);
}
所以你将能够看到错误是什么。
还要确保您的文件夹或路径是可写的。