I have a protected function that 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 do not want to initialize again).
protected function y() { $objmethod = $obj->methodx(); }
How can i do this?
Oh, both functions exist in the same class, say 'class z {}'
Error message
Fatal error: Call to a member function get_verification() on a non-object in
source share