diff --git a/www-api/app/Controllers/WrenchWallet.php b/www-api/app/Controllers/WrenchWallet.php index 6f289756..98dc1e22 100644 --- a/www-api/app/Controllers/WrenchWallet.php +++ b/www-api/app/Controllers/WrenchWallet.php @@ -14,7 +14,7 @@ class WrenchWallet extends BaseController { log_message('critical', "WrenchWallet Path GATE 001"); $this->request = $request = \Config\Services::request(); - $this->wrenchWalletModel = new \App\Models\WrenchWalletModel(); + $this->wrenchWalletModel = new \App\Models\WrenchWalletModel($this->allSettings); } diff --git a/www-api/app/Models/WrenchWalletModel.php b/www-api/app/Models/WrenchWalletModel.php index be73c903..6ffa1818 100644 --- a/www-api/app/Models/WrenchWalletModel.php +++ b/www-api/app/Models/WrenchWalletModel.php @@ -5,7 +5,13 @@ use CodeIgniter\Model; class WrenchWalletModel extends Model { - +protected $allSettings; + public function __construct( $allSettings ) + { + parent::__construct(); + $this->allSettings =$allSettings; + log_message('critical', "WrenchWalletModel _construct"); + } public function kidsExtraWallet(){ return [