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

Phalcon\Mvc\Model\Query;

Hello, I have problem, I can not execute a query

    public function itemAction()
    {
       $query = new Query("SELECT email FROM Contact", $this->getDI());
       $contact = $query->execute();
    }

I get Empty page :)

model Contact is mapped to the "contact" table

    public function getSource()
    {
        return 'contact';
    }

Sorry if I am wrong, but i need help

Are you getting an error? an exception? a warning?

Thank u for your response, but i sloved this problem. i can not use Phalcon\Mvc\Model\Query; working with Models Is the best solution for me

thank u