yii2URL美化
2015-10-09 11:11
633 查看
yii2的url
域名/index.php?r=site%2Findex
实际为
域名/index.php?r=site/index
可以美化下
可以在main.php中配置
修改后
域名/index.php/site/index
域名/index.php?r=site%2Findex
实际为
域名/index.php?r=site/index
可以美化下
可以在main.php中配置
'components' => [ …… 'urlManager'=> [ 'enablePrettyUrl'=> true, ], …… ],
修改后
域名/index.php/site/index
相关文章推荐
- Notepad++像EditPlus那样显示目录树
- crontab & php实现多进程思路
- FileOutputStream写到文件
- Jenkins系列之—07 FTP publisher plugin插件
- Jenkins系列之—06 Publish Over FTP Plugin插件
- 解决windows 安装 Composer失败
- pylon框架的php项目目录结果简介
- yii2中验证码的使用--图片不显示
- 向ContentProvider中添加媒体文件
- PHP PSR-1 基本代码规范(中文版)
- PHP异常处理机制
- LIVE555源码研究之RTPServer(转)
- php中mysqli_connect_errno和mysqli_connect_error
- phpstorm调试php代码
- PHP 用户地址定位
- php调用wcf,webservice
- PHP中$_SERVER的详细参数与说明
- thinkphp框架中模板的使用及其技巧
- PHP利用P3P实现跨域
- Laravel 500空白