X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/2e847cf21b8ab9d15fa167b315ca5b2fa92638fc..6a7e4474cba9d8be4b2ec445e10f1691f7277c50:/examples/image-organizer/php/api.php diff --git a/examples/image-organizer/php/api.php b/examples/image-organizer/php/api.php index 3b1aba6c..3500bea7 100644 --- a/examples/image-organizer/php/api.php +++ b/examples/image-organizer/php/api.php @@ -1,32 +1,32 @@ -&$a){ - $methods = array(); - foreach($a['methods'] as $mname=>&$m){ - $md = array( - 'name'=>$mname, - 'len'=>$m['len'] - ); - if(isset($m['formHandler'])){ - $md['formHandler'] = true; - } - $methods[] = $md; - } - $actions[$aname] = $methods; -} - -$cfg = array( - 'url'=>'php/router.php', - 'type'=>'remoting', - 'actions'=>$actions, - 'namespace'=>'Imgorg.ss' -); - -echo 'Imgorg.REMOTING_API = '; - -echo json_encode($cfg); -echo ';'; +&$a){ + $methods = array(); + foreach($a['methods'] as $mname=>&$m){ + $md = array( + 'name'=>$mname, + 'len'=>$m['len'] + ); + if(isset($m['formHandler'])){ + $md['formHandler'] = true; + } + $methods[] = $md; + } + $actions[$aname] = $methods; +} + +$cfg = array( + 'url'=>'php/router.php', + 'type'=>'remoting', + 'actions'=>$actions, + 'namespace'=>'Imgorg.ss' +); + +echo 'Imgorg.REMOTING_API = '; + +echo json_encode($cfg); +echo ';';