Hi
i was wondering if somebody could help me. Im trying to get the json data from an external source, and then process this using modx. I am familiar with the php CURL objects. but how do i go about outputting it in modx. do i use the snippet to retreive the json data, encode this with the json_encode function then i can cycle through the data using a loop, do i then cycle through this data adding it to a $string variable, then return the $string variable with the completed output? or do I somehow pass this then onto the view controller? (modx chunk?) assuming that modx is an MVC environment.
also the data that gets returned is apart of a form, so the ability to check $_GET in modx and pass data to the url using form method get is necessary, becuase what the options the user chooses, depends on what the data is returned from the external source.
Thanks