passing URI based variable and variable inside class |
To pass a variable (a property) between methods of a class, you define them before the constructor:
public $var = 'test'; And inside the methods you can access and modify them with $this->var; Website: http://avenir.ro
|
Messages In This Thread |
passing URI based variable and variable inside class - by jigapate - 06-18-2015, 01:42 AM
RE: passing URI based variable and variable inside class - by Avenirer - 06-18-2015, 07:15 AM
RE: passing URI based variable and variable inside class - by soonerdm - 07-02-2015, 11:37 AM
|