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

How to set default database Mongodb in phalcon

Hi all I use mongodb store data, but configuration (mysql ->mongodb) not running.How to

      $config = new Phalcon\Config(array(
          "database" => array(
                  "adapter" => "Mongodb",
                  "host" => "localhost",
                  "username" => "scott",
                  "password" => "cheetah",
                  "dbname" => "test_db"
         ................//
       ));