最新回答 / 明日复明日
你写的应该是对的,但是应该是放到www目录下,例如我的项目名为advancedurl: http://localhost/advanced/frontend/web仅供参考
2017-04-08
初始化init.bat之后,在网页上输入frontend.hyii2.com不成功,如下:
Index of /
[ICO]NameLast modifiedSize Description
[DIR]yii-advanced-app-2.0/
[DIR]smarty/
[DIR]mvc/
[IMG]favicon.ico 2010-12-31 09:40 198K
Apache/2.4.9 (Win32) OpenSSL/1.0.1g PHP/5.5.12 Server at frontend.hyii2.com Port 80
Index of /
[ICO]NameLast modifiedSize Description
[DIR]yii-advanced-app-2.0/
[DIR]smarty/
[DIR]mvc/
[IMG]favicon.ico 2010-12-31 09:40 198K
Apache/2.4.9 (Win32) OpenSSL/1.0.1g PHP/5.5.12 Server at frontend.hyii2.com Port 80
2017-04-06
刚才官网下载的最新的yii-advanced-app-2.0.11.tgz,然后发现这个urlManager必须放在main-local.php中,而且还必须是components里面,和老师讲的在main.php中不一样。刚测试完毕。
2017-04-05