[CI4] Toolbar DB Query And Event Duplication |
Hi everybody.
I'm relatively new with the CI4, I've been learning it as I go and to be honest loving the changes so far. My DB Queries are happening twice, no matter where they're executed from. ![]() these queries are being executed from several different files. the function which runs the query is a helper as follows: PHP Code: function getOption(string $key) and the `getOption()` function inside OptionsModel is as: PHP Code: public function getOption(string $key){ no matter how the query is being executed, the CI4 toolbar is always recording two of each SELECT query. my inserts are fine and are happening only once. and also my Events are happening twice as well. Meaning having the following code in a view file: PHP Code: \CodeIgniter\Events\Events::trigger('TEST'); PHP Code: Events::on('TEST', function () { if anyone can point me to the right direction so I can troubleshoot this it'd be greatly appreacated. |
Welcome Guest, Not a member yet? Register Sign In |