ThinkPHP

ThinkPHP

HashFlare

ThinkPHP Framework

sourcecode: https://github.com/top-think

tutorial: https://www.kancloud.cn/special/thinkphp5_quickstart

Issues:

# URL rewrite
the small trick here is the ? mark, 注意加上?号可能就解决了你的404问题,甩掉index.php
IIS:

<?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>

.htaccess

Options +FollowSymlinks -Multiviews
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]

Extension:

 

PHP >= 5.4.0
PDO PHP Extension
MBstring PHP Extension
CURL PHP Extension

PSR-2 PSR-4 Composer

 

适用于bootstrap的ace的ThinkPHP框架分页

http://www.ichasem.com/?p=364

友荐云推荐