17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1548 Views |
-
MASHUP: Combining results from 2 DataObjecySets

14 August 2007 at 9:51pm Last edited: 14 August 2007 9:52pm
Suppose in mashup:
$yw = new RestfulService($feed,$location_name,$cash_lifetime);
$params = array(
"u"=>"C",
"p"=>$YahooCode
);
$yw->setQueryString($params);
$conn = $yw->connect();
$yahooWeather = $yw->searchAttributes($conn, "//yweather:condition");
Debug::show($yahooWeather);
return $yahooWeather;Suppose if I want to get data from an other attribute:
$yahooWeather2 = $yw->searchAttributes($conn, "//yweather:forecast");
Can I combine yahooWeather and yahooWeather2 to return 1output? -
Re: MASHUP: Combining results from 2 DataObjecySets

23 August 2007 at 9:21pm
I tried with merge:
$yahooWeather->merge($yahooWeather2);The problem is that when using in the template (Control) , you will have 2 arrayresults. How can we combine them into 1 array result?
| 1548 Views | ||
|
Page:
1
|
Go to Top |

