Can't seem to insert data in to new database

so I’m calling this function in a controller if I dump my vars they are all there and are fine
working with the guest / view controller
invoices model

    sig_upload_file($this->session->userdata('user_id'),$invoice->client_id, $invoice->invoice_url_key,$invoice->invoice_id,'invoice','null',$image_name,$jsonImageData,$_POST['fullName']);

  function sig_upload_file($userId,$clientId, $urlKey,$invoiceId,$signatureType,$signatureConent,$image,$jsonImageData,$signerFullName)
       		 {
    			 
                    $data = array(
    					'fk_user_id' => $userId,
                        'fk_client_id' => $clientId,
    					'fk_invoice_id' => $invoiceId,
    					'signature_type' => $signatureType,
    					'signature_content' => $signatureConent,
                        'fk_url_key' => $urlKey,
                        'image' => $image,
    					'json_image_data' => $jsonImageData,
    					'signer_full_name' => $signerFullName
                   );
    			 // $this->db->insert('ip_signatures', $data);
    			   var_dump($data);
    			  // exit();
                   $this->mdl_invoices->create2($data);
       		 }

so to there my array

array(9) { ["fk_user_id"]=> string(1) "1" ["fk_client_id"]=> string(1) "2" ["fk_invoice_id"]=> string(2) "18" ["signature_type"]=> string(7) "invoice" ["signature_content"]=> string(4) "null" ["fk_url_key"]=> string(15) "ZwPtsKGXAbsCf6p" ["image"]=> string(19) "ZwPtsKGXAbsCf6p.png" ["json_image_data"]=> string(927) "[{"lx":385,"ly":60,"mx":385,"my":59},{"lx":146,"ly":0,"mx":146,"my":-1},{"lx":145,"ly":-1,"mx":146,"my":0},{"lx":145,"ly":0,"mx":145,"my":-1},{"lx":145,"ly":2,"mx":145,"my":0},{"lx":148,"ly":5,"mx":145,"my":2},{"lx":154,"ly":9,"mx":148,"my":5},{"lx":158,"ly":12,"mx":154,"my":9},{"lx":166,"ly":18,"mx":158,"my":12},{"lx":185,"ly":28,"mx":166,"my":18},{"lx":198,"ly":34,"mx":185,"my":28},{"lx":207,"ly":37,"mx":198,"my":34},{"lx":215,"ly":39,"mx":207,"my":37},{"lx":217,"ly":40,"mx":215,"my":39},{"lx":219,"ly":42,"mx":217,"my":40},{"lx":222,"ly":43,"mx":219,"my":42},{"lx":225,"ly":45,"mx":222,"my":43},{"lx":228,"ly":46,"mx":225,"my":45},{"lx":234,"ly":47,"mx":228,"my":46},{"lx":241,"ly":49,"mx":234,"my":47},{"lx":266,"ly":52,"mx":241,"my":49},{"lx":278,"ly":54,"mx":266,"my":52},{"lx":298,"ly":56,"mx":278,"my":54},{"lx":309,"ly":57,"mx":298,"my":56},{"lx":314,"ly":59,"mx":309,"my":57},{"lx":317,"ly":60,"mx":314,"my":59}]" ["signer_full_name"]=> string(6) "fsdfaa" }

i got this code in my model

    public function create2($db_array = NULL)
        {
    		var_dump(db_array);
    			
            $signature_id = parent::save(NULL, $db_array);
    
            return $signature_id;
        }

but my 2nd var_dump is not working its not making it

$this->load->model('invoices/mdl_invoices'); is in my guest view controller

but even if i move the model function to the controller still errors out when it hits

 $signature_id = parent::save(NULL, $db_array);

Do I have to register my new data base table i made or something? my auto load.php is arrays are all blank?

Thanks for any tips

Please use three back ticks to format your code like this:

```
$code = 'placed here';
```

ok will from now on.
I’m going to try to make this a little clearer i think i’m not understanding the framework.

so from email template default view I call a function in guest view controller from with in that function i call a function in the model to do database query. So from my controller I should be able to load in any model to call any function in any model. Correct?

this->load->model('invoices/mdl_invoices');
this->load->model('signatures/mdl_signatures');

I got this figured is a few things I was doing wrong