Thursday 28 July 2011 7:21:53 am
When trying to access this view in admin i get this error message: could not find driver in[...]/handler.php on line 88 Anyone else had this problem? The function that breaks looks like this:
public function __construct( $dbParams, $dsn )
{
$user = null;
$pass = null;
$driverOptions = null;
foreach ( $dbParams as $key => $val )
{
switch ( $key )
{
case 'user':
case 'username':
$user = $val;
break;
case 'pass':
case 'password':
$pass = $val;
break;
case 'driver-opts':
$driverOptions = $val;
break;
}
}
// THIS IS THE LINE THAT BREAKS
parent::__construct( $dsn, $user, $pass, $driverOptions );
$this->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );
$this->setAttribute( PDO::ATTR_CASE, PDO::CASE_LOWER );
}
|