data __construct inside a controller

#2
[eluser]TomsB[/eluser]
Code:
class Home extends Controller {

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

function foo()
{
  $this->load->view('foo', $this->data);
}

function bar()
{
  $this->load->view('bar', $this->data);
}

}


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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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