Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » function to print array content

Our old forums are still available as a read-only archive.

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

Page: 1 2
Go to End
Author Topic: 2838 Views
  • ojalà
    Community Member
    87 Posts

    Re: function to print array content Link to this post

    ok, Thanks!now all is correct!!It seem a bit complicated, this isn't the standard php languages..
    So is possible connect SilverStripe to my SQL database?To do this I need write query as explain in the guide..following silverstripe language?

  • Willr
    Forum Moderator
    5502 Posts

    Re: function to print array content Link to this post

    SilverStripe has a templating engine which is different from just straight PHP. It wraps things in class's like ArrayData to make using the templates much more straight forward, and to keep using PHP syntax and options in the HTML.

    For doing SQL you can use various methods here - http://doc.silverstripe.com/doku.php?id=sqlquery but as it says there a better way to do it sometimes is to use the tools the framework provides eg using DataObject::get() calls which are translated into SQL it just adds a wrapper to what you would normally write

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.