X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/ee06f37b0f6f6d94cd05a6ffae556660f7c4a2bc..c930e9176a5a85509c5b0230e2bff5c22a591432:/examples/image-organizer/php/api.php diff --git a/examples/image-organizer/php/api.php b/examples/image-organizer/php/api.php new file mode 100644 index 00000000..3b1aba6c --- /dev/null +++ b/examples/image-organizer/php/api.php @@ -0,0 +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 ';';