- 在当前框架中新建一个文件夹lee:
mkdir lee
- 进入lee:
cd lee
- 引入框架:
composer create-project
-
写rewrite文件:vim .htaccess
<IfModule mod_rewrite.c> Options +FollowSymlinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^lee/(.*)$ lee/index.php/$1 [QSA,PT,L] </IfModule>
- 浏览器访问:
your-domain/lee/module/controller/method
本文转自 Lee_吉 51CTO博客,原文链接:http://blog.51cto.com/12173069/2071722