Answer the question
In order to leave comments, you need to log in
Why did the classes stop working?
At some point, all models stopped working.
PHP Fatal Error – yii\base\ErrorException
Class 'common\models\LoginForm' not found
public function actionIndex(){
$bbb = Controller::className();
return $bbb;
}
public function actionIndex(){
$bbb = User::className();
return $bbb;
}
Answer the question
In order to leave comments, you need to log in
look at which path the autoloader is looking for the file and make sure that it is there the
autoloader is located in the vendor/yiisoft/yii2/BaseYii.php file, the autoload method
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question