D
D
dud0ser2017-07-02 14:22:07
Yii
dud0ser, 2017-07-02 14:22:07

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',
];

what is the problem? how to solve?
host link: hostt.zzz.com.ua

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sanes, 2017-07-02
@Sanes

Is the database server correct?

L
Lumore, 2017-07-02
@Lumore

host=localhost?

V
Vlad Nevlad, 2017-07-03
@vladnevlad

"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 question

Ask a Question

731 491 924 answers to any question