From 891728e487488f84f1d6ee62fcfc58c79c9de32b Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sun, 27 Oct 2024 17:47:24 -0400 Subject: [PATCH] passed all settimngs --- www-api/app/Controllers/WrenchWallet.php | 2 +- www-api/app/Models/WrenchWalletModel.php | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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 [