Transaction on model function |
(12-28-2022, 04:04 AM)kenjis Wrote: What's the problem? i want simply update table's ,there is another exmple Code: $db = \Config\Database::connect(); is this the correct way ?
If the two models use the same db connection, the code is correct.
And if you don't specify another database group, models use the default group connection. |
Welcome Guest, Not a member yet? Register Sign In |