0
林在/訂單/測試
當我嘗試/訂單/測試拉拉=測試&巴巴=測試
?public function action_test(){
echo var_dump($_GET);
}
應該輸出拉拉=測試&巴巴=中的var_dump()測試,而是它給了我:
array(1) { ["order/test"]=> string(0) "" }
爲什麼有這個happend?我怎樣才能解決這個問題?
這是我的htaccess:
# Turn on URL rewriting
RewriteEngine On
# Installation directory
RewriteBase/
# Protect hidden files from being viewed
<Files .*>
Order Deny,Allow
Deny From All
</Files>
# Protect application and system files from being viewed
RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [F,L]
# Allow any files or directories that exist to be displayed directly
RewriteCond ${REQUEST_URI} ^.+$
RewriteCond %{REQUEST_FILENAME} \.(gif|jpe?g|png|pdf)$ [OR]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -l
RewriteRule^- [L]
# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php?$0 [PT,L]
你的'.htaccess'裏有什麼? PS:在kohana中,您需要使用請求對象而不是超全局變量來訪問請求參數 – zerkms
@zerkms我用我的訪問權限更新了問題 – Karem