Skip to content
Florian Voutzinos edited this page Oct 15, 2013 · 18 revisions

Browser

Usage

<?php

// Will create a context 'redshop.checkout' and browse the current uri
RBrowser::getInstance('redshop.checkout')->browse();

// Getting a browser instance
$browser = RBrowser::getInstance('redshop.checkout');

// Will remove the current browsed uri and return it
$lastUri = $browser->back();

// Get the last browsed view
$lastView = $browser->getLastView();

// Clear the browser history
$browser->clearHistory();

Clone this wiki locally