Welcome Guest, Not a member yet? Register   Sign In
create a new object CI4
#6

(02-09-2020, 03:05 AM)jreklund Wrote: Hi, in PHP the actual name for an empty class are this.
PHP Code:
$this->model = new stdClass(); 

The problem is in php 7.4
PHP Code:
new stdClass(); 


the error is:

Class 'App\Controllers\stdObject' not found


I read that for php write:
(object) Null;
or
new stdClass ();
it's the same thing.

But I don't understand why he can't find the class.
i don't know if i have to add use something \\ other \\ object functions

Thanks
Reply


Messages In This Thread
create a new object CI4 - by gra - 02-08-2020, 04:28 AM
RE: create a new object CI4 - by mjamilasfihani - 02-08-2020, 08:23 AM
RE: create a new object CI4 - by gra - 02-08-2020, 08:52 AM
RE: create a new object CI4 - by gra - 02-08-2020, 02:59 PM
RE: create a new object CI4 - by jreklund - 02-09-2020, 03:05 AM
RE: create a new object CI4 - by gra - 02-10-2020, 09:53 PM
RE: create a new object CI4 - by InsiteFX - 02-11-2020, 04:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB