Welcome Guest, Not a member yet? Register   Sign In
CJAX and CI - responses vs controllers - accessing CI goodness
#6

[eluser]LordMatt[/eluser]
The debugging method I used was to put ajax messages throughout the code and then the last one to appear after that was the error, then that code I copied to my welcome controller and balm! Got the error message (a weird parse error I've not seen before. Fixed it anyway.

However for all other error levels I found this worked well.

Code:
<?php
#Let's test our code line
                try {
                    $this->load->model('Users');
                } catch (Exception $e) {
                    $ajax->warning('Caught exception: '.  $e->getMessage() );
                }


Messages In This Thread
CJAX and CI - responses vs controllers - accessing CI goodness - by El Forum - 04-27-2013, 05:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB