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){
10 if (isset($m['len'])) {
18 'params'=>$m['params']
21 if(isset($m['formHandler']) && $m['formHandler']){
22 $md['formHandler'] = true;
26 $actions[$aname] = $methods;
30 'url'=>'php/router.php',
35 echo 'Ext.ns("Ext.app"); Ext.app.REMOTING_API = ';
37 echo json_encode($cfg);