我正在尝试这样做:
$this->request->redirect("/?message=".HTML::entities($message));然而,这会导致我的索引控制器在我身上挂掉(即500内部服务器错误,没有堆栈跟踪)。这是“不”吗?
发布于 2012-10-21 08:18:17
没有堆栈跟踪,而Kohana中的500错误表示一些低级错误(PHP或Web服务器错误)。这可能是对象属性或方法可见性问题或其他问题。
否则,Kohana将为您生成异常解释(当在Kohana::init()部分的bootstrap.php中设置errors => true时)。
检查服务器错误日志文件中最近的错误。你会在那里找到解决方案。
发布于 2012-10-24 20:15:42
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);
}https://stackoverflow.com/questions/12981690
复制相似问题