hi guys. i am writing a class for registering data and i am having a problem calling functions and vars from other classes.
here's a class diagram of where everything is called-
i am in forms, and i am having difficulty getting vars from site, using my functions in postgredb and vars from user.
i can get data from form easily.
but when i try getting data from site i get an fatal saying site is not a member of form, ($this->site->var) so, how do i call data from a parent class?
solved it- used a public $p; then set $form->p = $this, and then when calling parent date - $this->p->var...