Post by cpi » Thu Nov 13, 2014 4:44 am

Does anyone know how to add a page so that the content cannot be seen if you are not logged in?

cpi
Newbie

Posts

Joined
Thu Nov 13, 2014 4:38 am

Post by Martijn ISB » Thu Nov 13, 2014 4:18 pm

In your controller you can do something like this:

Code: Select all

if (!$this->customer->isLogged()) {
	$this->session->data['redirect'] = $this->url->link('account/account', '', 'SSL');

	$this->redirect($this->url->link('account/login', '', 'SSL'));
}

Newbie

Posts

Joined
Thu Nov 13, 2014 2:48 am
Who is online

Users browsing this forum: No registered users and 5 guests