Welcome Guest, Not a member yet? Register   Sign In
How to disable the auto instantiate in Models or libraries
#1

[eluser]Diego Pessoa[/eluser]
Hi, I have a problem:

Code:
class Foo extends Model {
public $bar;

public function __construct($bar) {
parent::__construct();
$this->bar = $bar;
}

}

A simple classs right?

Let's to load this:

Code:
$this->load->model('Foo');

The result:
Message: Missing argument 1 for Foo.

How I can do to disable this auto-instantiate?


Messages In This Thread
How to disable the auto instantiate in Models or libraries - by El Forum - 04-03-2008, 04:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB