php - best way to call function from an extended class -


I am using phpstorm as IDE and my class. In php , I started class as

  class, database {function sample ()} {$ this-> Query (); }}   

is in the query () class database . But phststorm shows a warning that

  method 'query' class was not found in MyClass. The method referenced in the subject category is not found.   

But the function is working without any problem.

Is there any problem with this code style? Or do I need to try a different approach? I searched for many websites but did not find a proper answer. Please help. Thank you.

The problem should be called in class or by a method, from the class after the class is started .

You edit $ this not in the law area in a class

edit, OP changed question:

OK for me Works, no warnings Enter image details here

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -