2016
01-27
01-27
Yii2.0入口文件详解
我们先来看一下Yii2的入口文件。在配置Yii2的nginx的配置时,有这样几句#server_namemysite.local;root/path/to/basic/web;......location/{#Redirecteverythingthatisn'tarealfiletoindex.phptry_files$uri$uri//index.php?$args;}可以看到web的入口文件是web文件夹下的index.php文件。index.php文件的内容如下:<?php//commentoutthefollowingtwol...
继续阅读 >