I have protected function which creates a class object
protected function x() {
$obj = new classx();
}
Now I need to access the methods of the class object from different functions (I don't want to initialise again).
protected function y() {
$objmethod = $obj->methodx();
}
How can i get it done?
Oh both the functions exist in the same class say 'class z{}'
The error message is
Fatal error: Call to a member function get_verification() on a non-object in