Revision #172 has been created by rackycz on Mar 19, 2020, 9:58:50 PM with the memo:
local url
« previous (#171) next (#173) »
Changes
Title
unchanged
Yii v2 snippet guide
Category
unchanged
Tutorials
Yii version
unchanged
2.0
Tags
unchanged
tutorial,beginner,yii2
Content
changed
[...]
echo $form->field($generator, 'modelClass');
echo $form->field($generator, 'searchModelClass');
echo $form->field($generator, 'controllerClass');
}
```
**Webproject outsite docroot (htdocs) folder (Windows)**
---
If you need to store you project for example in folder D:\GIT\EmployerNr1\ProjectNr2, you can. Just modify 2 files and restart Apache (I am using XAMPP under Win):
- C:\Windows\System32\drivers\etc\hosts
```
127.0.0.1 myFictiveUrl.local
```
- C:\xampp\apache\conf\extra\httpd-vhosts.conf
```
<VirtualHost *:80>
DocumentRoot "D:\GIT\EmployerNr1\ProjectNr2"
ServerName myFictiveUrl.local
ServerAlias myFictiveUrl.local
<Directory "D:\GIT\EmployerNr1\ProjectNr2">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
# New directive needed in Apache 2.4.3:
Require all granted
</Directory>
</VirtualHost>
```