如果用户没有登录并且他访问了愿望清单页面。(http://website/index.php?route=account/wishlist)他应该重定向到登录页面(http://website/index.php?route=account/ login ) 但相反,他停留在同一页面上并且显示为空白
这是控制器代码
class ControllerAccountWishList extends Controller {
public function index() {
if (!$this->customer->isLogged()) {
$this->session->data['redirect'] = $this->url->link('account/wishlist', '', true);
$this->response->redirect($this->url->link('account/login', '', true));
}
}
}