Welcome Guest, Not a member yet? Register   Sign In
Transactions & Orphan MySQL connections
#4

[eluser]jonsolo11[/eluser]
In controllers/test.php:
Code:
class Test extends Controller
{
    function __construct()
    {
        parent::Controller();
        $this->load->model("testmodel");
    }
    
    function initialize()
    {
        not_a_function();
        echo "Foo"; //'Foo' never gets echoed; it dies first
    }
}

In models/testmodel.php:
Code:
class Testmodel extends Model
{
    function __construct()
    {
        parent::Model();
    }
}

When I execute this code by going to 'http://path/to/my/CI/test' it creates an orphan connection.

These, obviously, aren't my real function/class names, but this is pretty much the entire program that I'm executing. I've commented out all my autoloads and hooks; I don't think there's any other code being executed outside of these functions.

And btw, I'm using CI 1.5.4.

Thanks for the very fast reply, Derek :-) I really appreciate the help.


Messages In This Thread
Transactions & Orphan MySQL connections - by El Forum - 01-08-2008, 09:01 AM
Transactions & Orphan MySQL connections - by El Forum - 01-08-2008, 09:32 AM
Transactions & Orphan MySQL connections - by El Forum - 01-08-2008, 11:26 AM
Transactions & Orphan MySQL connections - by El Forum - 01-08-2008, 11:51 AM
Transactions & Orphan MySQL connections - by El Forum - 01-08-2008, 04:21 PM
Transactions & Orphan MySQL connections - by El Forum - 01-08-2008, 04:28 PM
Transactions & Orphan MySQL connections - by El Forum - 01-08-2008, 08:13 PM
Transactions & Orphan MySQL connections - by El Forum - 01-09-2008, 11:22 AM
Transactions & Orphan MySQL connections - by El Forum - 01-10-2008, 08:45 AM
Transactions & Orphan MySQL connections - by El Forum - 01-10-2008, 12:09 PM
Transactions & Orphan MySQL connections - by El Forum - 01-16-2008, 04:25 PM
Transactions & Orphan MySQL connections - by El Forum - 02-02-2008, 01:55 PM
Transactions & Orphan MySQL connections - by El Forum - 02-02-2008, 02:18 PM
Transactions & Orphan MySQL connections - by El Forum - 06-04-2009, 02:03 PM
Transactions & Orphan MySQL connections - by El Forum - 06-04-2009, 02:18 PM
Transactions & Orphan MySQL connections - by El Forum - 09-17-2009, 08:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB