Displaying 1 result from an estimated 1 matches for "parentvar".
Did you mean:
parentpay
2012 Dec 06
3
Proper way to call variables from a parent class to a child class
I currently have a child class of a parent one. The parent defines
some variable that I need to use in the child class. I am also using
gepetto. Gepetto is complaining about the syntax of the child variable.
It is saying that "$parentVar" should be "$::parentVar" however, when
changing to what Gepetto wants to use this breaks my classes. Does anyone
know the proper method of doing this? Currently the "$parentVar" method
below works fine, its just causing an error with Gepetto.
class test::parent {
$pa...