tad_scsi
9 Mar 2007, 6:24 AM
As an example..
In the yui-ext libraries, JSON.php was required to run at least one of the examples - Image Chooser
In the ext libraries, in the same example, JSON.php is not called from get-images.php AND the last two lines read as follows:
$o = array('images'=>$images);
echo json_encode($o);
However, the only way I can seem to get the Image Chooser to work in Alpha is by going into get-images.php and adding the require_once and changing the last two lines to this:
$o = array('images'=>$images);
$json = new Services_JSON();
echo $json->encode($o);
Am I missing a point here, is JSON.php no longer required, and if not - why might I be getting unknown function type errors?
In the yui-ext libraries, JSON.php was required to run at least one of the examples - Image Chooser
In the ext libraries, in the same example, JSON.php is not called from get-images.php AND the last two lines read as follows:
$o = array('images'=>$images);
echo json_encode($o);
However, the only way I can seem to get the Image Chooser to work in Alpha is by going into get-images.php and adding the require_once and changing the last two lines to this:
$o = array('images'=>$images);
$json = new Services_JSON();
echo $json->encode($o);
Am I missing a point here, is JSON.php no longer required, and if not - why might I be getting unknown function type errors?