Update structure basic app.

Hello.

I clone this basic template

yiisoft/yii2-app-basic

How do I change the underlying structure of the template? I want to get this file structure:




/public_html

  main

    config

    models

    modules

    vendor

    ...

  index.php

  .htaccess

  ...



Thanks!

You don’t want to do that. Honestly :)

What is the problem?

If you really want to do this, then do it right - and use this:

https://github.com/k...app-practical-b

It is not going to be as safe as having the web root separate from the rest of your application, but it is a solid option.

Thanks.

The problem is that most web servers do not have access to the file cofiguration the Apache.

actual.