document root without web

hi! :)

How to use yii2 basic app with original structure, but with DocumentRoot in root not web folder?

You can point your web server in any directory you want, just reflect changes in index.php.

I mean those lines:




require(__DIR__ . '/../vendor/autoload.php');

require(__DIR__ . '/../frontend/classes/Yii.php');


$config = require(__DIR__ . '/../config/web.php');



if you want just to rename, just do it. For example I use htdocs instead web without any issues.