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

Hi, in PHP the actual name for an empty class are this.
PHP Code:
$this->model = new stdClass(); 

Don't forget to add this in your BaseConroller. And initialize it there, so that you can use it all controllers.
PHP Code:
protected $model
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