Answer the question
In order to leave comments, you need to log in
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 include
this class, it is loaded, but falls out error for another file. Do not solve this problem by prescribing include
in 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'=>'',
),
),
);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question