public function execute()
{
// only logged in profiles can seer their dashboard
if (FrontendProfilesAuthentication::isLoggedIn()) {
// call the parent
parent::execute();
/*
* You could use this as some kind of dashboard where you can show an activity
* stream, some statistics, ...
*/
$this->loadTemplate();
} else {
// profile not logged in
$this->redirect(FrontendNavigation::getURLForBlock('Profiles', 'Login') . '?queryString=' . FrontendNavigation::getURLForBlock('Profiles'), 307);
}
}