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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

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

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

function to print array content

Go to End

10 Posts   3660 Views


Community Member, 87 Posts

15 October 2008 at 9:38pm

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?


Forum Moderator, 5523 Posts

15 October 2008 at 11:35pm

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 - 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

Go to Top