thinkphp自己實現的模板引擎和smarty比較起來如何呢?目前還沒有使用過tp的系統模板引擎 不知道比較起來哪個更加高效靈活
2014-12-26
這個模板引擎的處理確實靈活 $me['age']|md5|sustr=0,5|defalut='a'
2014-12-26
$this->assign('name',$name)->assign('sex','man')->assign('today',$date);多少版本才可以這樣子寫
2014-12-23
為什么我寫的是$this->display('Index/test');頁面不顯示,寫的是$this->display('test');就顯示呢?
2014-12-23
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(visit|im|min|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [QSA,L]
</IfModule>
我這樣子寫才可以隱藏
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(visit|im|min|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [QSA,L]
</IfModule>
我這樣子寫才可以隱藏
2014-12-23
手冊上說可用between;
其中type屬性的值可以用in/notin/between/notbetween,其它屬性的用法和IN或者BETWEEN一致。
其中type屬性的值可以用in/notin/between/notbetween,其它屬性的用法和IN或者BETWEEN一致。
2014-12-23
講師回答 / Donsen
如果你需要隱藏index.php的話 那就估計需另外配置了。如果你是為了簡單開發使用,而不是為了URL美觀 那么隱藏與否就沒那么重要了。如果你實在不會弄 我推薦你用個集成環境做開發吧。簡單省事點,沒有那么麻煩。http://wiki.ubuntu.org.cn/Xampp
2014-12-22