Jump to content

Variable $name1 is undefined.


JoelWebsites

Recommended Posts

you are trying to use a class variable $this->name1.  So the first question is, did you define name1 as a class variable?

class wm_marketplace {
        //do you have this defined?
        $name1 = array();

        public function somefunction() 
        {
                //you are trying to use a class variable, so is it defined above?
                $this->name1 = '';
        }
}
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...