include(User.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory
вот такая ошибкаа хотя всё вроде правильно расположено!
1. nordghost - 01 Июня, 2012 - 22:37:55 - перейти к сообщению
2. sKaa - 02 Июня, 2012 - 01:09:56 - перейти к сообщению
nordghost, соболезную...
3. etoYA - 02 Июня, 2012 - 02:35:08 - перейти к сообщению
sKaa, флудер
4. sKaa - 02 Июня, 2012 - 03:15:25 - перейти к сообщению
etoYA, а как еще я должен реагировать на подобные сообщения если уважаемый nordghost не предоставляет почти никакой информации ?
5. nordghost - 02 Июня, 2012 - 12:13:48 - перейти к сообщению
PHP:
скопировать код в буфер обмена
скопировать код в буфер обмена
- <?PHP
- // uncomment the following to define a path alias
- // Yii::setPathOfAlias('local','path/to/local-folder');
- // This is the main Web application configuration. Any writable
- // CWebApplication properties can be configured here.
- 'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
- 'name'=>'La2Test',
- // preloading 'log' component
- 'preload'=>array('log'),
- // autoloading model and component classes
- 'import'=>array(
- 'application.models.*',
- 'application.components.*',
- 'application.modules.user.*',
- 'application.modules.user.components.*',
- 'application.modules.rights.*',
- 'application.modules.rights.components.*',
- ),
- 'modules'=>array(
- // uncomment the following to enable the Gii tool
- /*
- 'gii'=>array(
- 'class'=>'system.gii.GiiModule',
- 'password'=>'Enter Your Password Here',
- // If removed, Gii defaults to localhost only. Edit carefully to taste.
- 'ipFilters'=>array('127.0.0.1','::1'),
- ),
- */
- 'user'=>array(
- 'tableUsers' => 'tbl_users',
- 'tableProfiles' => 'tbl_profiles',
- 'tableProfileFields' => 'tbl_profiles_fields',
- ),
- 'rights'=>array(
- 'install'=>true,
- ),
- ),
- // application components
- 'components'=>array(
- 'user'=>array(
- 'class'=>'RWebUser',
- ),
- 'authManager'=>array(
- 'class'=>'RDbAuthManager',
- ),
- // uncomment the following to enable URLs in path-format
- /*
- 'urlManager'=>array(
- 'urlFormat'=>'path',
- 'rules'=>array(
- '<controller:\w+>/<id:\d+>'=>'<controller>/view',
- '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
- '<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
- ),
- ),
- */
- /*
- 'db'=>array(
- 'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
- ),
- */
- // uncomment the following to use a MySQL database
- 'db'=>array(
- 'connectionString' => 'mysql:host=localhost;dbname=la2',
- 'emulatePrepare' => true,
- 'username' => 'site',
- 'password' => 'site',
- 'charset' => 'utf8',
- ),
- 'errorHandler'=>array(
- // use 'site/error' action to display errors
- 'errorAction'=>'site/error',
- ),
- 'log'=>array(
- 'class'=>'CLogRouter',
- 'routes'=>array(
- 'class'=>'CFileLogRoute',
- 'levels'=>'error, warning',
- ),
- // uncomment the following to show log messages on web pages
- /*
- array(
- 'class'=>'CWebLogRoute',
- ),
- */
- ),
- ),
- ),
- // application-level parameters that can be accessed
- // using Yii::app()->params['paramName']
- 'params'=>array(
- // this is used in contact page
- 'adminEmail'=>'webmaster@example.com',
- ),
- );
Вот конфиг
модуль rights лежит в папке modules
Вот вся страница с ошибкой:
PHP:
скопировать код в буфер обмена
скопировать код в буфер обмена
- include(User.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory
- C:\VertrigoServ\www\yii\framework\YiiBase.php(418)
- 406 {
- 407 foreach(self::$_includePaths as $path)
- 408 {
- 409 $classFile=$path.DIRECTORY_SEPARATOR.$className.'.php';
- 411 {
- 412 include($classFile);
- 413 break;
- 414 }
- 415 }
- 416 }
- 417 else
- 418 include($className.'.php');
- 419 }
- 420 else // class name with namespace in PHP 5.3
- 421 {
- 423 if(($path=self::getPathOfAlias($namespace))!==false)
- 424 include($path.'.php');
- 425 else
- 426 return false;
- 427 }
- 429 }
- 430 return true;
- Stack Trace
- #0
- –
- C:\VertrigoServ\www\yii\framework\YiiBase.php(418): YiiBase::autoload()
- 413 break;
- 414 }
- 415 }
- 416 }
- 417 else
- 418 include($className.'.php');
- 419 }
- 420 else // class name with namespace in PHP 5.3
- 421 {
- 423 if(($path=self::getPathOfAlias($namespace))!==false)
- #1
- unknown(0): YiiBase::autoload("User")
- #2
- –
- 373 {
- 375 return self::$_models[$className];
- 376 else
- 377 {
- 378 $model=self::$_models[$className]=new $className(null);
- 379 $model->_md=new CActiveRecordMetaData($model);
- 380 $model->attachBehaviors($model->behaviors());
- 381 return $model;
- 382 }
- 383 }
- #3
- –
- C:\VertrigoServ\www\tutor\protected\modules\rights\components\RAuthorizer.php(295): CActiveRecord::model("User")
- 290
- 291 $criteria = new CDbCriteria();
- 292 $criteria->addInCondition(Rights::module()->userIdColumn, $userIdList);
- 293
- 294 $userClass = Rights::module()->userClass;
- 295 $users = CActiveRecord::model($userClass)->findAll($criteria);
- 296 $users = $this->attachUserBehavior($users);
- 297
- 299 foreach( $users as $user )
- 300 $superusers[] = $user->name;
- #4
- –
- C:\VertrigoServ\www\tutor\protected\modules\rights\controllers\InstallController.php(61): RAuthorizer->getSuperusers()
- 56 'confirm',
- 57 'run',
- 58 'error',
- 59 'ready',
- 60 ),
- 61 'users'=>$this->_authorizer->getSuperusers(),
- 62 ),
- 64 'users'=>array('*'),
- 65 ),
- 66 );
- #5
- +
- C:\VertrigoServ\www\yii\framework\web\CController.php(1145): InstallController->accessRules()
- #6
- +
- C:\VertrigoServ\www\yii\framework\web\filters\CInlineFilter.php(59): CController->filterAccessControl(CFilterChain)
- #7
- +
- C:\VertrigoServ\www\yii\framework\web\filters\CFilterChain.php(131): CInlineFilter->filter(CFilterChain)
- #8
- +
- C:\VertrigoServ\www\yii\framework\web\CController.php(292): CFilterChain->run()
- #9
- +
- C:\VertrigoServ\www\yii\framework\web\CController.php(266): CController->runActionWithFilters(CInlineAction, array("accessControl"))
- #10
- +
- C:\VertrigoServ\www\yii\framework\web\CWebApplication.php(276): CController->run("")
- #11
- +
- C:\VertrigoServ\www\yii\framework\web\CWebApplication.php(135): CWebApplication->runController("rights")
- #12
- +
- C:\VertrigoServ\www\yii\framework\base\CApplication.php(162): CWebApplication->processRequest()
- #13
- –
- C:\VertrigoServ\www\tutor\index.php(13): CApplication->run()
- 09 // specify how many levels of call stack should be shown in each log message
- 11
- 12 require_once($yii);
- 13 Yii::createWebApplication($config)->run();