Answer the question
In order to leave comments, you need to log in
Problem migrating Yii2 project to host?
everything works on the local server....
when I transferred it to the host, the ActiveRecord class stopped finding it, what's the problem? (Category.php file is already visible)
(in category.php class Category extends yii\db\ActiveRecord { changed to: class Category extends ActiveRecord { did not help)
here are the config/db.php settings
<?php
return [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=hostt.zzz.com.ua;dbname=***********', // название БД правильно указано
'username' => '**********', // username тоже правильно указано
'password' => '************', // пароль тоже правильный
'charset' => 'utf8',
];
Answer the question
In order to leave comments, you need to log in
"the class is no longer found" - did you transfer the framework itself, or just the project?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question