Welcome Guest, Not a member yet? Register   Sign In
[SOLVED]Class as Library
#3

(11-15-2020, 02:00 PM)InsiteFX Wrote: If you change the name of the class you need to change it where ever it is called also.

So all those errors if you look at them they have the wrong class name because you changed it.

The class (library ) are correctly loaded , i have not error in the row where i load it...

I see that the class are loaded either with PhpMQTT and phpMQTT (because i havent error , if i add a letter as APhpMQTT i have Unable to load the requested class: APhpMQTT  instead )

But ever the same error (on console with ajax) : Message: Undefined property: Ajax_call_device::$phpMQTT in this row :

if ($this->phpMQTT->connect(true, NULL, $username, $password)) {

Reply


Messages In This Thread
[SOLVED]Class as Library - by pippuccio76 - 11-15-2020, 01:28 PM
RE: Class as Library - by InsiteFX - 11-15-2020, 02:00 PM
RE: Class as Library - by pippuccio76 - 11-16-2020, 04:59 AM
RE: Class as Library - by InsiteFX - 11-16-2020, 06:13 AM
RE: Class as Library - by pippuccio76 - 11-16-2020, 06:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB