passed all settimngs
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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 [
|
||||
|
||||
Reference in New Issue
Block a user