Welcome Guest, Not a member yet? Register   Sign In
data __construct inside a controller
#4

[eluser]TomsB[/eluser]
I have no errors when doing like this:
Code:
class Home extends Controller {

function __construct()
{
  $this->data['cow'] = 'moo';
  $this->load->file('test');
}

}


Messages In This Thread
data __construct inside a controller - by El Forum - 12-04-2008, 09:33 PM
data __construct inside a controller - by El Forum - 12-04-2008, 09:58 PM
data __construct inside a controller - by El Forum - 12-04-2008, 10:06 PM
data __construct inside a controller - by El Forum - 12-04-2008, 10:14 PM
data __construct inside a controller - by El Forum - 12-04-2008, 10:23 PM
data __construct inside a controller - by El Forum - 12-04-2008, 10:29 PM
data __construct inside a controller - by El Forum - 12-04-2008, 10:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB