Welcome Guest, Not a member yet? Register   Sign In
codeingiter 1.5.4 and EXTJS 2.0.1
#7

[eluser]Yauhen_S[/eluser]
This code looks good, but is not solving problem with PHP errors handling. By default CI return HTML error message, for example if db error occur. And ExtJs cause error when evaling response text. I was try to replace CI errors templates like this:

<?php
$res = array(
'success' => false,
'errors' => array(
'heading' => 'PHP Error:',
'message' => "<p>Severity: $severity; ?&gt;</p>
<p>Message: $message</p>
<p>Filename: $filepath</p>
<p>Line Number: $line</p>"
)
);
print json_encode($res);
?&gt;

but this work if only one error occur, otherwise output come incorrect JSON code


Messages In This Thread
codeingiter 1.5.4 and EXTJS 2.0.1 - by El Forum - 02-04-2008, 11:34 AM
codeingiter 1.5.4 and EXTJS 2.0.1 - by El Forum - 02-05-2008, 01:03 PM
codeingiter 1.5.4 and EXTJS 2.0.1 - by El Forum - 02-18-2008, 08:34 AM
codeingiter 1.5.4 and EXTJS 2.0.1 - by El Forum - 02-18-2008, 01:21 PM
codeingiter 1.5.4 and EXTJS 2.0.1 - by El Forum - 02-18-2008, 05:07 PM
codeingiter 1.5.4 and EXTJS 2.0.1 - by El Forum - 02-19-2008, 05:42 PM
codeingiter 1.5.4 and EXTJS 2.0.1 - by El Forum - 06-11-2008, 02:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB