1
轉移到新的服務器後,我得到了請求的問題。kohana 3.2沒有得到'請求'
例如
class Controller_Main extends Controller {
public function action_testrequest()
{
echo "<pre>";
print_r($_GET);
$this->auto_render = FALSE; // don't use layout
}
}
和url my-site/main/testrequest?query=test
返回空數組
同時my-site/test.php?query=test
與內容
<pre>
<?php
print_r($_GET);
返回
Array
(
[query] => test
)
這是爲什麼?
我看到原因是在kohana,但我找不到它。
任何線索?