在cakephp网址显示空白页面

时间:2014-12-05 12:28:45

标签: php url cakephp

我正在开发cakephp2.x。我有一个在我的本地服务器(WAMPP)上运行正常的URL但是当我在实时服务器上测试时,url显示为空白页面。

我尝试通过在视图中抛出错误进行调试但它没有影响url,页面仍然打开为空白而没有错误。

我正在使用cakephp Auth组件登录应用程序。我无法理解为什么页面在实时服务器上显示为空白而在本地不显示。请帮我解决。

删除视图时甚至没有显示错误。 如果我在Auth数组中添加该函数,如下所示。

public function beforeFilter()
     {
           parent::beforeFilter();
           if(!empty($this->Auth))
           {
              $this->Auth->allow('give_ratings');
           }
     }

然后页面打开但没有会话。

感谢。

1 个答案:

答案 0 :(得分:-1)

好吧!!!我相信mod_rewrite有一些错误。请检查链接 http://book.cakephp.org/2.0/en/getting-started.html#a-note-on-mod-rewrite

我希望它有所帮助!!!

相关问题