码迷,mamicode.com
首页 > Web开发 > 详细

Thinkphp

时间:2015-09-18 11:47:37      阅读:168      评论:0      收藏:0      [点我收藏+]

标签:

字符串截取

{$vo.title|msubstr=0,5,‘utf-8‘,false}

{$vo.title|msubstr=0,5}

 

IIS web.config 配置

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="OrgPage" stopProcessing="true">
<match url="^(.*)$" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_HOST}" pattern="^(.*)$" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

Thinkphp

标签:

原文地址:http://www.cnblogs.com/lvzhihui/p/4818451.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!