Hi,
I am using the library at https://github.com/fishjerky/phalcon-mssql
I have problem connecting to the mssql server.
( ! ) Strict standards: Declaration of Twm\Db\Adapter\Pdo\Mssql::executePrepared() should be compatible with Phalcon\Db\Adapter\Pdo::executePrepared(PDOStatement $statement, array $placeholders, $dataTypes) in C:\localhost\app\vendor\mssql\db\adapter\Mssql.php on line 10
My steps of integration.
1) Add namespace in config/loader.php
2) Register db to di in services.php
$di->set('db2', function() use ($config) {
$dbclass = 'Twm\Db\Adapter\Pdo\\' . 'Mssql';
return new $dbclass(array(
"host" => 'myip',
"username" => 'username',
"password" => 'password',
"dbname" => 'dbname'
));
});
3) Got the error when i tried to var_dump() $this->di->get('db2') in a controller.
Any help appreciated.