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']) && $m['formHandler']){
15 $md['formHandler'] = true;
19 $actions[$aname] = $methods;
23 'url'=>'php/router.php',
28 echo 'Ext.app.REMOTING_API = ';
30 echo json_encode($cfg);