phalconphp Table 'posts' doesn't exist in database when dumping meta-data for Posts
message:
Table 'posts' doesn't exist in database when dumping meta-data for Posts
solution:
edit app/config/services.php
$di->set('db', function () use ($config) {
return new DbAdapter($config->toArray());
});
to
$di->set('db', function () use ($config) {
return new DbAdapter($config['database']->toArray());
});
Table 'posts' doesn't exist in database when dumping meta-data for Posts
solution:
edit app/config/services.php
$di->set('db', function () use ($config) {
return new DbAdapter($config->toArray());
});
to
$di->set('db', function () use ($config) {
return new DbAdapter($config['database']->toArray());
});
댓글