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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.