Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Return joined data from two tables


Reply

10 Posts   3020 Views

Avatar
B-Side

4 June 2010 at 10:28pm Community Member, 42 Posts

Thanks so much Mark - that is perfect - it returns the required data and I'm nearly there.

This is most likely an unrelated issue - formatting the dates returned using $date.Format(...) within the control structure is throwing up an error in the template: Call to a member function XML_val() on a non-object...

Have you heard of this before?

Avatar
mark_s

9 June 2010 at 10:45pm Community Member, 78 Posts

Did you resolve this last error? Sounds like something in the template which is not null, but contains something invalid. Perhaps try removing the reference to the constructed data object set from the template, to see if that's what's causing the problem. Otherwise, trying removing other things until it doesn't fail any more.

Mark