1
我一直在使用AMFPHP和閃存的項目。我只做了PHP的東西。 amf中的一個函數從3個表中獲取結果並將其結果存儲在1個數組中,並返回完美,但幾天後它已停止。奇怪的是,如果我單獨返回結果,它們將工作,但最終數組永遠不會返回,並且無法在其測試瀏覽器中看到來自AMFPHP調用的任何響應。amf php不返回multidimention數組
在代碼中,我已經提到,每個點都從DB獲得正確的結果,並且已經從其正確的重新調整結果進行了測試。
另一件事似乎很奇怪的是,我返回了部分結果來罰款,但在他開始和結束thier的東西是不適合的其它功能工作:
(mx.collections::ArrayCollection)#0
filterFunction = (null)
length = 6
list = (mx.collections::ArrayList)#1
length = 6
source = (Array)#2
結果
uid = "8BEDEF32-4BED-E1A4-56A0-F227EDD40026"
sort = (null)
source = (Array)#2
這裏是功能
function getDefaultValuesForAvatarsLocal($jockey_type=NULL){
$defaultValues = array();
$sql = "SELECT * FROM default_values";
$defaultBLValues = $this->db->query($sql);
$numRows = $this->db->num_rows($defaultBLValues);
if($numRows > 0){
$defaultValues['BLP'] = $defaultBLValues; /* IF RETURN THIS GETS RESULT */
if($jockey_type){
$sql = "SELECT jockey_clothing_categories.type, jockey_clothing_items.* FROM jockey_clothing_items
JOIN jockey_clothing_categories
ON(jockey_clothing_items.category_id = jockey_clothing_categories.id)
WHERE jockey_clothing_items.is_default = 1 AND jockey_clothing_items.jockey_type = ". $jockey_type;
$defaultJockeyClothings = $this->db->query($sql);
$numRows = $this->db->num_rows($defaultJockeyClothings);
}
if($numRows>0){
if($jockey_type){
$defaultValues['DJC'] = $defaultJockeyClothings; /* IF RETURN THIS GETS RESULT */
}
$sql = "SELECT horse_avatar_clothings_categories.type, horse_avatar_clothings_items.* FROM horse_avatar_clothings_items
JOIN horse_avatar_clothings_categories
ON(horse_avatar_clothings_items.category_id = horse_avatar_clothings_categories.id)
WHERE horse_avatar_clothings_items.is_default = 1";
$defaultHorseClothings = $this->db->query($sql);
$numRows = $this->db->num_rows($defaultHorseClothings);
if($numRows>0){
$defaultValues['DHC'] = $defaultHorseClothings; /* IF RETURN THIS GETS RESULT */
#return $defaultValues; /* NOT RETUNING THE FINAL ARRAY FROM THIS POINT EITHER */
}else{
# return false;
}
}else{
# return false;
}
#return 1333;
/* THE CONTROL COMES HERE PROPERLY BUT NOT RETUNING THE BELOW ARRAY BUT IS RETUNING ANY TEST TEXT
LIKE return "I AM HERE"; WILL RETURN THE TEXT PROPERLY
*/
return $defaultValues;
}else{
return false;
}
}
任何幫助,將不勝感激 Reagrds
在閃存中你是如何觸發AMFPHP遠程調用? – 2012-04-28 21:52:35
另外我會建議將Actionscript類映射到PHP類 – 2012-04-28 21:53:27