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