[Solar-talk] Uncaught exception 'PDOException'

Paul M Jones pmjones at solarphp.com
Tue Aug 22 07:11:28 PDT 2006


On Aug 22, 2006, at 8:51 AM, Vivek Puri wrote:
> // SQL connection
> $config['Solar_Sql'] = array(
>     'driver' => 'Solar_Sql_Driver_Mysql',
>     'host'   => '127.0.0.1',
>     'user'   => 'root',
>     'pass'   => 'pass',
>     'name'   => 'solar',
> );

Should be more like this:

	$config['Solar_Sql'] = array(
	    'adapter' => 'Solar_Sql_Driver_Mysql',
	);
	
	$config['Solar_Sql_Adapter_Mysql'] = array(
	    'host'   => '127.0.0.1',
	    'user'   => 'root',
	    'pass'   => 'pass',
	    'name'   => 'solar',
	);

The config key names changed (and standardized) in 0.21 or 0.22, iirc.



--

Paul M. Jones  <http://paul-m-jones.com>

Solar: Simple Object Library and Application Repository
for PHP5.   <http://solarphp.com>

Savant: The simple, elegant, and powerful solution for
templates in PHP.   <http://phpsavant.com>




More information about the solar-talk mailing list