X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/examples/direct/php/api.php diff --git a/examples/direct/php/api.php b/examples/direct/php/api.php index de708093..f595275e 100644 --- a/examples/direct/php/api.php +++ b/examples/direct/php/api.php @@ -7,10 +7,17 @@ $actions = array(); foreach($API as $aname=>&$a){ $methods = array(); foreach($a['methods'] as $mname=>&$m){ - $md = array( - 'name'=>$mname, - 'len'=>$m['len'] - ); + if (isset($m['len'])) { + $md = array( + 'name'=>$mname, + 'len'=>$m['len'] + ); + } else { + $md = array( + 'name'=>$mname, + 'params'=>$m['params'] + ); + } if(isset($m['formHandler']) && $m['formHandler']){ $md['formHandler'] = true; } @@ -25,7 +32,7 @@ $cfg = array( 'actions'=>$actions ); -echo 'Ext.app.REMOTING_API = '; +echo 'Ext.ns("Ext.app"); Ext.app.REMOTING_API = '; echo json_encode($cfg); echo ';';