5 * Handler for client side form sumbit
6 * @param Array $formPacket Collection of form items along with direct data
7 * @return Array response packet
9 function updateBasicInfo($formPacket){
11 $email = $formPacket['email'];
12 if ($email == 'aaron@extjs.com') {
14 $response['errors'] = array(
15 'email'=>'already taken'
20 $response['success'] = $success;
21 // return form packet for demonstration/testing purposes
22 $response['debug_formPacket'] = $formPacket;
27 * put your comment there...
28 * This method configured with len=2, so 2 arguments will be sent
29 * in the order according to the client side specified paramOrder
30 * @param Number $userId
32 * @return Array response packet
34 function getBasicInfo($userId, $foo){
39 'name'=>'Aaron Conran',
40 'company'=>'Ext JS, LLC',
41 'email'=>'aaron@extjs.com'
46 function getPhoneInfo($userId) {
50 'cell'=>'443-555-1234',
51 'office'=>'1-800-CALLEXT',
57 function getLocationInfo($userId) {
61 'street'=>'1234 Red Dog Rd.',