3 header('Content-Type: text/javascript');
5 // convert API config to Ext.Direct spec
7 foreach($API as $aname=>&$a){
9 foreach($a['methods'] as $mname=>&$m){
14 if(isset($m['formHandler'])){
15 $md['formHandler'] = true;
19 $actions[$aname] = $methods;
23 'url'=>'php/router.php',
26 'namespace'=>'Imgorg.ss'
29 echo 'Imgorg.REMOTING_API = ';
31 echo json_encode($cfg);