Hi
Could anyone explain how to catch up the exception result formed in Router.php:
PHP Code:
}
catch(Exception $e)
{
$response = array(
'type' => 'exception',
'tid' => $cdata->tid,
'message' => $e->getMessage(),
'where' => $e->getTraceAsString()
);
}
In Ext script I'm on success and failure events and just can't catch this response
Code:
FormPanel constructor
...
buttons:[{
text: 'Enter',
id: 'submit',
handler: doSubmit
}],
// configs for BasicForm
api: {
// The server-side must mark the submit handler as a 'formHandler'
submit: Ext.ss.Auth_Demo.login
},
// specify the order for the passed params
paramsAsHash: true
});
function doSubmit()
{
basicInfo.getForm().submit(
{
waitMsg: '????????',
waitTitle: '???? ????????..',
params:
{
username : 'username',
password : 'password'
},
success: function(form, action)
{
Ext.Msg.alert(':)');
basicInfo.ownerCt.close();
},
failure:function(form, action)
{
if(action.failureType == 'server')
{
Ext.Msg.alert(':(');
}
}
});
}
Thanx