Welcome Guest, Not a member yet? Register   Sign In
how declare variable inside constructor?
#3

[eluser]WildPhoenix[/eluser]
Code:
class Holiday extends Controller {

  var $data;

  function Holiday()
  {
    parent::Controller();
  }

  function access_variable()
  {
        $this->data[‘name’] = ‘ranjit’;
  }

  function another_func()
  {
        $this->data[‘different’] = ‘content’;
  }
}


Messages In This Thread
how declare variable inside constructor? - by El Forum - 09-02-2009, 12:38 AM
how declare variable inside constructor? - by El Forum - 09-02-2009, 01:14 AM
how declare variable inside constructor? - by El Forum - 09-02-2009, 05:42 AM
how declare variable inside constructor? - by El Forum - 09-25-2009, 12:54 AM
how declare variable inside constructor? - by El Forum - 09-25-2009, 02:02 AM
how declare variable inside constructor? - by El Forum - 09-25-2009, 07:50 AM
how declare variable inside constructor? - by El Forum - 07-19-2011, 07:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB