php - Changing Yii folder locations -


using yii2 basic. trying tidy-up yii2 installation , wish place main working files , folders sub directory on co-hosted production server called, say, "yii2basic". need place files , folders web folder public_html on server.

as far can ascertain, need change the following lines in index.php file so:

require(__dir__ . '/../yii2basic/vendor/autoload.php'); require(__dir__ . '/../yii2basic/vendor/yiisoft/yii2/yii.php');  $config = require(__dir__ . '/../yii2basic/config/web.php'); 

is correct or have missed something?

please note not have access httpd.conf file on co-hosted server cannot make changes it.

i have searched answer on site , in manual cannot find one. it's possible question incorrectly phrased. if so, apologies.

you need change number of files correct new url

to start off need change following files

  1. index.php
  2. index-test.php
  3. yii.php //to able run yii on console/terminal
  4. requirements.php

then you're go


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -