开发者

CodeIgniter model debugging errors

I am new to CodeIgniter, and I need a way to get more meaningful error messages. Specifically I am having trouble with some model relationships, but the error is vague. I am willing to try/install anything since I dont know how to fix this relationship.

Is there a way to specify how verbose an error message is? Also, thi开发者_运维知识库s could be related to DataMapper, but I cant tell. I dont care if they are logged or in the browser.

In my browser error reads:

An Error Was Encountered
Unable to relate X with Y.

Any more info would be great... which class, line number, a stacktrace. Increasing the log threshold did not help.


This is a datamapper error message.

It looks like you are requesting the assocaites entries from X with a reference to Y. It is most likely that you have not properly defined the relationships between the two tables. Remember that you have to define the relationship for both models (most often one 'has_many' and one 'has_one').

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜