ZF2部分循环错误

时间:2013-01-12 12:11:03

标签: layout partial-views zend-framework2

将我的项目从我的本地(osx)开发转移到(debian)生产,让我陷入了一些错误。一切都适合我当地的开发人员,但在debian上有两件事情出错了。

我的layout.phtml不会呈现(没有错误),我得到部分循环的错误。

错误输出粘贴:

http://pastebin.com/74g1dL8g

谢谢! :) 缺口

1 个答案:

答案 0 :(得分:0)

错误说明。

"Rows as part of this DataSource, with type object cannot be cast to an array"

您必须使用仅结构选项移动数据库而不使用数据。在您的代码中,您没有放置空检查来验证数据集或记录。我认为它试图将空对象分成数组......

您需要使用提供逐步调试的XDebug来调试您的应用程序,并且可以与eclipse PDT,netbeans甚至vim一起使用。

或者

使用老式的方式

echo "programing working to till this line";
exit();