Problem when using sql server database

I am getting problem in this function of Yii framework YiiBase.php file.Working fine with mysql, with sql server it gives warning

include( .php) [<a href=‘function.require’>function.require</a>]: failed to open stream: No such file or directory

line highlighted in the following code. What I can i do to remove this.

public static function autoload($className)

{


	//echo &#036;className;


	//exit;


	// use include so that the error PHP file may appear


	if(isset(self::&#036;classMap[&#036;className]))


		include(self::&#036;classMap[&#036;className]);


	else if(isset(self::&#036;_coreClasses[&#036;className]))


		include(YII_PATH.self::&#036;_coreClasses[&#036;className]);


	else


	{


		// include class file relying on include_path


		if(strpos(&#036;className,'&#092;&#092;')===false)  // class without namespace


		{


			if(self::&#036;enableIncludePath===false)


			{


				foreach(self::&#036;_includePaths as &#036;path)


				{


					&#036;classFile=&#036;path.DIRECTORY_SEPARATOR.&#036;className.'.php';


					if(is_file(&#036;classFile))


					{


						include(&#036;classFile);


						break;


					}


				}


			}


			else{


	[b]//Getting problem here[/b]	

include($className.’.php’);

				//echo &#036;className;


		}


		}


		else  // class name with namespace in PHP 5.3


		{


			&#036;namespace=str_replace('&#092;&#092;','.',ltrim(&#036;className,'&#092;&#092;'));


			if((&#036;path=self::getPathOfAlias(&#036;namespace))&#33;==false)


				include(&#036;path.'.php');


			else


				return false;


		}


		return class_exists(&#036;className,false) || interface_exists(&#036;className,false);


	}


	return true;


}

Thanks

Abhay

config->main file is ok?

check this link

Hi,

Thanks for your response but could not get the correct solution to correct this. This is working fine with a table in a database but when i try to insert the data into another one then it gives this type of warning. ???