We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Why is this SQL will perform twice?

    $sql = "INSERT INTO Users (name,email)"." VALUES  ('dsaf','545454')";

    $a =$this->modelsManager->executeQuery($sql);exit;

    Why is this SQL will perform twice? Once two new ?


85.5k
Accepted
answer

if you place the code in your index file, and you have an ajax call, like favicon or so ..



311