Answer the question
In order to leave comments, you need to log in
Why doesn't Phalcon see the PDO driver?
Departure:
could not find driver
#0 [internal function]: PDO->__construct('mysql:host=loca...', 'root', 'тут пароль', Array)
#1 [internal function]: Phalcon\Db\Adapter\Pdo->connect(Array)
#2 /var/www/domains/ovz1.vanixachatryan.zmy3z.vps.myjino.ru/app/Services.php(65): Phalcon\Db\Adapter\Pdo->__construct(Array)
#3 [internal function]: Closure->{closure}()
#4 [internal function]: Phalcon\Di\Service->resolve(NULL, Object(Phalcon\Di\FactoryDefault))
#5 [internal function]: Phalcon\Di->get('db', NULL)
#6 [internal function]: Phalcon\Di->getShared('db')
#7 [internal function]: Phalcon\Mvc\Model\Manager->_getConnection(Object(Chat), NULL)
#8 [internal function]: Phalcon\Mvc\Model\Manager->getReadConnection(Object(Chat))
#9 [internal function]: Phalcon\Mvc\Model->getReadConnection()
#10 [internal function]: Phalcon\Mvc\Model\MetaData\Strategy\Introspection->getMetaData(Object(Chat), Object(Phalcon\Di\FactoryDefault))
#11 [internal function]: Phalcon\Mvc\Model\MetaData->_initialize(Object(Chat), 'chat-chat', 'chat', '')
#12 [internal function]: Phalcon\Mvc\Model\MetaData->readMetaData(Object(Chat))
#13 [internal function]: Phalcon\Mvc\Model\MetaData->hasAttribute(Object(Chat), 'id')
#14 [internal function]: Phalcon\Mvc\Model\Query->_getQualified(Array)
#15 [internal function]: Phalcon\Mvc\Model\Query->_getExpression(Array)
#16 [internal function]: Phalcon\Mvc\Model\Query->_getOrderClause(Array)
#17 [internal function]: Phalcon\Mvc\Model\Query->_prepareSelect()
#18 [internal function]: Phalcon\Mvc\Model\Query->parse()
#19 [internal function]: Phalcon\Mvc\Model\Query->execute()
#20 /var/www/domains/ovz1.vanixachatryan.zmy3z.vps.myjino.ru/app/controllers/ControllerBase.php(16): Phalcon\Mvc\Model::find(Array)
#21 /var/www/domains/ovz1.vanixachatryan.zmy3z.vps.myjino.ru/app/controllers/IndexController.php(7): ControllerBase->initialize()
#22 [internal function]: IndexController->initialize()
#23 [internal function]: Phalcon\Dispatcher->dispatch()
#24 /var/www/domains/ovz1.vanixachatryan.zmy3z.vps.myjino.ru/public/index.php(22): Phalcon\Mvc\Application->handle(NULL)
#25 {main}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question