Welcome Guest, Not a member yet? Register   Sign In
Error when trying to get property from parent class
#2

Change it from private to protected.

public
scope to make that property/method available from anywhere, other classes and instances of the object.

private
scope when you want your property/method to be visible in its own class only.

protected
scope when you want to make your property/method visible in all classes that extend current class including the parent class.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: Error when trying to get property from parent class - by InsiteFX - 10-11-2021, 12:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB