Redeclare "params"-Array in "main-test" config file

Hi,

I have a regular main-configFile and a test-configFile.

The test-configFile looks as follows:




<?php


return CMap::mergeArray(

	require(dirname(__FILE__).'/main.php'),

	array(

		'components'=>array(

			'db'=>array(

				'class'=>'CDbConnection',

				'connectionString' => 'mysql:host=localhost;dbname=XXX',

				'emulatePrepare' => true,

				'charset' => 'utf8',

			),

			'params'=>array(

				'cssBasePath' => 'css',

				'imageBasePath' => 'images',

			)

		)

	)

);




The Problem is the ‘params’-Array.

It always gives the following Error:




Object configuration must be an array containing a "class" element



What is wrong?

THX

Andreas

Move params outside the components array.

/Tommy

THX.

what a stupid mistake

Not stupid at all, Andreas123, this forum thread saved the rest of us HOURS of time, struggling with this. Tommy-Tri’s solution just solved my problem, also. Many thanks.

Cheers.