Hi,
ok i don’t know if this is the right place - so i put it here sorry if not.
Buy the way im not native english speaking so sorry for bad English too!!!
So here–>
I would like to import the Class ArrayDataProvider
as described here: http://www.yiiframework.com/extension/array-data-provider/
it doesn’t work.
----->
[i][i][i]PHP Error
Description
include(ArrayDataProvider.php) [<a href=‘function.include’>function.include</a>]: failed to open stream: No such file or directory
Source File
D:\xampp\htdocs\yii\framework\YiiBase.php(406)
00394:
00395:
00396: //test-----------------------------
00397:
00398: // use include so that the error PHP file may appear
00399: if(isset(self::$_coreClasses[$className]))
00400: include(YII_PATH.self::$_coreClasses[$className]);
00401: else if(isset(self::$classMap[$className]))
00402: include(self::$classMap[$className]);
00403: else
00404: {
00405: if(strpos($className,’\\’)===false)
00406: include($className.’.php’);
00407: else // class name with namespace in PHP 5.3
00408: {
00409: $namespace=str_replace(’\\’,’.’,ltrim($className,’\\’));
00410: if(($path=self::getPathOfAlias($namespace))!==false)
00411: include($path.’.php’);
00412: else
00413: return false;
00414: }
00415: return class_exists($className,false) || interface_exists($className,false);
00416: }
00417: return true;
00418: }
[/i][/i][/i]
<--------------------
i have no clue where i am going wrong. I tried everything, copied the file i found:
ArrayDataProvider.php to CArrayDataProvider.php
->tried import, include and require with both files in the extensions directory and
the yii installation base directory (off course first copied the files there).
nothing works - why
appreciate any help or clue…