【发布时间】:2013-01-24 22:26:41
【问题描述】:
在 CakePHP 中,$this->redirect 可以很好地重定向到带有内部 url 的内部页面。有没有办法将用户重定向到外部页面?
例如: $this->redirectTo('http://google.com');
【问题讨论】:
-
header("Location: http://google.com")是一种选择,假设事先没有发送任何输出。
标签: php url cakephp redirect cakephp-2.0