Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Director::history($pagesBack=1)

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1013 Views
  • xmedeko
    Avatar
    Community Member
    94 Posts

    Director::history($pagesBack=1) Link to this post

    Is that method working? I suggest something like
    [code php]
    $history = Session::get('history');
    if (!$history) {
    return null;
    }
    return $history[sizeof($history)] - $pagesBack - 1;
    }

    Anyway, it's used only once in Security.php. Even Director::redirectBack() do not use it. So, is it necessary to have this? Because the session grows larger and larger, when somebody surf the pages.

    1013 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.