How to yii2 Upload Files to hosting

How to yii2 Upload Files to hosting



frontend/web/ klasöründeki dosyaları hosting dosyasında ana dizine kopyalıyoruz.

copy files from “frontend/web/*” folders to hosting root folder.

index.php dosyasının içeriğindeki şu satırları
open index.php file and change this lines

require(__DIR__ . ‘/../../vendor/autoload.php’);
require(__DIR__ . ‘/../../vendor/yiisoft/yii2/Yii.php’);
require(__DIR__ . ‘/../../common/config/bootstrap.php’);
require(__DIR__ . ‘/../config/bootstrap.php’);

$config = yiihelpersArrayHelper::merge(
require(__DIR__ . ‘/../../common/config/main.php’),
require(__DIR__ . ‘/../../common/config/main-local.php’),
require(__DIR__ . ‘/../config/main.php’),
require(__DIR__ . ‘/../config/main-local.php’)
);

satırlarını aşağıda ki gibi değiştiriyoruz.

these lines

require(__DIR__ . ‘/vendor/autoload.php’);
require(__DIR__ . ‘/vendor/yiisoft/yii2/Yii.php’);
require(__DIR__ . ‘/common/config/bootstrap.php’);
require(__DIR__ . ‘/frontend/config/bootstrap.php’);

$config = yiihelpersArrayHelper::merge(
require(__DIR__ . ‘/common/config/main.php’),
require(__DIR__ . ‘/common/config/main-local.php’),
require(__DIR__ . ‘/frontend/config/main.php’),
require(__DIR__ . ‘/frontend/config/main-local.php’)

4 thoughts on “How to yii2 Upload Files to hosting

Leave a Reply

Your email address will not be published. Required fields are marked *