配置服务器(可用wamp),安装composer并使用国内镜像网站,这些如果不会的同学,请自行学习。下面没有特殊描述的,默认为cmd命令行。
Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule . index.php
'urlManager' => [
'class' => 'yii\web\UrlManager',
'showScriptName' => false,
'enablePrettyUrl' => true,
'rules' => [],
],
以后安装组件:
举个栗子:
composer require --prefer-dist phpoffice/phpword "v0.13.*"
以后按葫芦画瓢吧
本文由 hs912 创作,采用 知识共享署名 3.0 中国大陆许可协议 进行许可。 可自由转载、引用,但需署名作者且注明文章出处。