Welcome Guest, Not a member yet? Register   Sign In
Abstract Model
#1

[eluser]Moon 111[/eluser]
I have an abstract model and a few classes that extend them, but when I try to load the class that extends it, it says the parent class can't be found.

Let me show you what I mean:

Code:
Abstract Class Blah Extends Model {

    public function __construct() {

        parent::__construct();
    }

    abstract public function test();
}

Code:
Class BlahBlah Extends Blah {

    public function test() {

        // Do something
    }
}

And now it tells me it can't find Class Blah (I can't just load it as it's an abstract class...)

What do I do?

By the way, hasn't CI heard of autoload???


Messages In This Thread
Abstract Model - by El Forum - 10-02-2008, 01:08 AM
Abstract Model - by El Forum - 10-02-2008, 01:19 AM
Abstract Model - by El Forum - 10-02-2008, 01:23 AM
Abstract Model - by El Forum - 10-02-2008, 01:43 AM
Abstract Model - by El Forum - 10-02-2008, 06:56 AM
Abstract Model - by El Forum - 06-06-2011, 04:29 PM
Abstract Model - by El Forum - 06-06-2011, 09:27 PM
Abstract Model - by El Forum - 06-07-2011, 02:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB