Welcome Guest, Not a member yet? Register   Sign In
Call to a member function Create() on a non-object
#5

[eluser]Ludatha[/eluser]
Oh yeah, Shows how much I remember things =)

Changed the code, but a different error this time. I've had this before.
Code:
<?php
class Profile extends Controller {    
    function index()
    {
        include('D:\wamp3\www\php\system\application\libraries\SimpleLoginSecure.php');
        $cheese = new SimpleLoginSecure();
        $cheese->Create('usernamehere', 'passwordhere');
    }
}
?>

A PHP Error was encountered

Severity: Notice

Message: Undefined property: Profile::$db

Filename: libraries/SimpleLoginSecure.php

Line Number: 61


Fatal error: Call to a member function where() on a non-object in D:\wamp3\www\php\system\application\libraries\SimpleLoginSecure.php on line 61


Messages In This Thread
Call to a member function Create() on a non-object - by El Forum - 05-25-2009, 11:20 AM
Call to a member function Create() on a non-object - by El Forum - 05-25-2009, 11:26 AM
Call to a member function Create() on a non-object - by El Forum - 05-25-2009, 11:38 AM
Call to a member function Create() on a non-object - by El Forum - 05-25-2009, 11:44 AM
Call to a member function Create() on a non-object - by El Forum - 05-25-2009, 11:49 AM
Call to a member function Create() on a non-object - by El Forum - 05-25-2009, 12:05 PM
Call to a member function Create() on a non-object - by El Forum - 05-25-2009, 01:04 PM
Call to a member function Create() on a non-object - by El Forum - 05-25-2009, 01:07 PM
Call to a member function Create() on a non-object - by El Forum - 05-25-2009, 01:15 PM
Call to a member function Create() on a non-object - by El Forum - 05-25-2009, 01:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB