Jump to:

23493 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Function doesn't give an output

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

Page: 1 2
Go to End
Author Topic: 1449 Views
  • tdmarko
    Community Member
    4 Posts

    Re: Function doesn't give an output Link to this post

    No it's not. It's a single standing control surrounded by html

  • martimiz
    Forum Moderator
    1086 Posts

    Re: Function doesn't give an output Link to this post

    I didn't delve into the complexity of your calculations, but based on the bits of code you provided I can only say that it will not work

    Since I don't know how far you've gotten into SilverStripe, at this point I can only give a few tips, that you might already be familiar with. For a function outcome to be rendered using a template, the function should either return a single value or a DataObjectSet, in which case you can use a control structure in the template to render the set.

    Seems like your function creates a couple of arrays and I don't know how you were planning on feeding them to the template...

Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.