Welcome Guest, Not a member yet? Register   Sign In
How to set a variable in Construct, or outside of Method?
#2

[eluser]mudshark[/eluser]
Within your constructor and methods, reference it as $this->user_id:

Code:
function __construct()
{
  parent::__construct();
  $this->user_id = $this->session->userdata('user_id');
}


Messages In This Thread
How to set a variable in Construct, or outside of Method? - by El Forum - 06-15-2012, 04:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB