<?php $config = [ 'components' => [ 'request' => [ // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation 'cookieValidationKey' => '5-TS9SscpfQXS0aVtRrPUZcRcW053Opc', ], ],]; if (!YII_ENV_TEST) { /
伪静态,通过设置server服务,做域名地址的转换工作. urlManager地址美化,通过程序的方式实现地址美化工作. 通过在主配置文件里配置组件来实现: 'components'=>array( // uncomment the following to enable URLs in path-format 'urlManager'=>array( 'urlFormat'=>'path', //配置路由 能够起到省略 r= 'rules'=>array( //加入后缀 user