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-
[IMG]http://img376.imageshack.us/img376/19/classesdm8.png[/IMG]
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.
$this->var
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
solved it- used a public $p; then set $form->p = $this, and then when calling parent date - $this->p->var...