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

amfphp and silverstripe


Reply


4 Posts   1299 Views

Avatar
spierala

Community Member, 80 Posts

26 December 2009 at 6:41am

Edited: 26/12/2009 6:44am

hello,

I would like to display data using flash. I know about the way generating xml output and then load the xml in flash.

interesting alternative would be amfphp. of course i could access the mysql database directly with amfphp. but can I somehow use the classes in mysite/code returning the data like this:

function GetData(){
         $records = DataObject::get("Job");
         return $records ;
      }   

how can i make this returned data accessible to amfphp?

thanx,
florian

Avatar
tobych

Community Member, 97 Posts

27 December 2009 at 4:12pm

You can use SilverStripe's normal (XHTML) templating functionality to prepare your XML.

See http://code.google.com/p/google-highly-open-participation-silverstripe/issues/detail?id=127

Toby

Avatar
spierala

Community Member, 80 Posts

28 December 2009 at 10:34am

he thanx toby, I know about that xml output functionality of silverstripe, but can I somehow use amfphp to access data returned by the silverstripe classes? greetz, florian

Avatar
tobych

Community Member, 97 Posts

28 December 2009 at 4:31pm

I've had a quick look into AMFPHP and it looks like "probably".

Sounds like AMFPHP is "smelly", with some work underway to bring it up-to-date:

http://forum.sephiroth.it/showthread.php?t=9070

Also, see this post on the SS forums:

http://www.silverstripe.org/archive/show/83387?showPost=99383

Toby