E
E
EvgMul2016-11-24 12:53:58
Yii
EvgMul, 2016-11-24 12:53:58

How to solve class autoloading problem in Yii 1.1?

Hello. I have the following problem. I unloaded the project on yii1 from the repository, I try to raise it myself, but the following error occurs:
PHP warning
include(FrontController.php): failed to open stream: No such file or directory

If I load this file using includethis class, it is loaded, but falls out error for another file. Do not solve this problem by prescribing includein all files :).
I can't say for sure, but I suspect that the error is due to not configured (or incorrectly configured) class autoloading. Please tell me how to solve the problem?
The config looks like this:

<?php

return array(
    'id' => 'project',
  'modules'=>array(
        'gii'=>array(
            'class'=>'system.gii.GiiModule',
            'password'=>'qwe123',
            'ipFilters'=>array('127.0.0.1','::1'),
            'generatorPaths'=>array(
                'application.gii',
            ),
        ),
    ),	
  'components'=>array(
    'clientScript'=>array(
      'scriptMap'=>array(
        'jquery.js'=>'/lib/jquery/jquery.js',
        'jquery.min.js'=>'/lib/jquery/jquery.min.js',
      ),
    ),
    'fixture'=>array(
      'class'=>'system.test.CDbFixtureManager',
    ),
    /* uncomment the following to provide test database connection
    */
    'db'=>array(
      'connectionString'=>'mysql:host=localhost;dbname=yii_zoton',
      'username'=>'root',
      'password'=>'',
    ),
  ),
);

Thanks in advance to all who respond.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question