How to trace back errors in views?

2 views
Skip to first unread message

Joe

unread,
Jan 11, 2011, 6:02:09 AM1/11/11
to haXigniter
If i use PHP as target for haXigniter and I have a view with
a ::foreach myvar:: and myvar isn't assigned, you get an error like:

Fatal error: Call to a member function iterator() on a non-object in /
Users/jochenheizmann/Projekte/Masterplan/www/lib/haxe/
Template.class.php

Is it possible to get the exact call stack or location of the error in
the the template. If you have big tempaltes with lots of iterators and
you have a typo it's a little bit ugly to find out, where the error
exactly happens.

Thanks,

Jochen

ronpish

unread,
Jan 11, 2011, 6:34:34 AM1/11/11
to haxig...@googlegroups.com
Hi,
Which template engine do you use?
Have you inserted the view.assign in your controller ?

-----Message d'origine-----
De : Joe <joem...@googlemail.com>
À :
haXigniter <haxig...@googlegroups.com>
Envoyé :
mar., 11 janv. 2011, 12:04:26 HNEC
Objet :
[haXigniter] How to trace back errors in views?

Reply all
Reply to author
Forward
0 new messages