Php Kohana 3.2将查询变量传递到索引页

Php Kohana 3.2将查询变量传递到索引页,php,http,redirect,kohana,Php,Http,Redirect,Kohana,我正在尝试这样做: $this->request->redirect("/?message=".HTML::entities($message)); 但是,这会导致索引控制器在我身上死亡(即500内部服务器错误,无堆栈跟踪)。这是否?否stacktrace,而Kohana中的500错误表示一些低级错误(PHP或Web服务器错误)。它可能是对象属性或方法可见性问题或其他问题 否则,Kohana将为您生成异常解释(当errors=>true在bootstrap.php的Kohana::

我正在尝试这样做:

$this->request->redirect("/?message=".HTML::entities($message));

但是,这会导致索引控制器在我身上死亡(即500内部服务器错误,无堆栈跟踪)。这是否?

否stacktrace,而Kohana中的500错误表示一些低级错误(PHP或Web服务器错误)。它可能是对象属性或方法可见性问题或其他问题

否则,Kohana将为您生成异常解释(当
errors=>true
bootstrap.php
Kohana::init()
部分中设置时)


检查服务器错误日志文件以查找上次错误。你会在那里找到解决办法

使用Request::query()怎么样?比如:
$this->request->query('message',$message)->redirect()
public function action_index()
{
    $to = arr::get($_GET,'to' , 'world');
    $this->response->body('hello, '.urldecode($to).'!');
}

public function action_jump() {
    $to = urlencode('Tony Stark');
    $this->request->redirect('/?to=' . $to);
}