public function index()
    {
        if ($cart = $this->Cart()) {
            return $this->redirect($cart->CartLink);
        } elseif ($response = ErrorPage::response_for(404)) {
            return $response;
        }
        return $this->httpError(404, _t('SilverShop\Cart\ShoppingCart.NoCartInitialised', 'no cart initialised'));
    }
public function index()
    {
        if ($cart = $this->Cart()) {
            return $this->redirect($cart->CartLink);
        } elseif ($response = ErrorPage::response_for(404)) {
            return $response;
        }
        return $this->httpError(404, _t('SilverShop\Cart\ShoppingCart.NoCartInitialised', 'no cart initialised'));
    }
public function index ( ) { if ( $ cart = $ this -> Cart ( ) ) { return $ this -> redirect ( $ cart -> CartLink ) ; } elseif ( $ response = ErrorPage :: response_for ( 404 ) ) { return $ response ; } return $ this -> httpError ( 404 , _t ( 'SilverShop\Cart\ShoppingCart.NoCartInitialised' , 'no cart initialised' ) ) ; }
Handle index requests

@throws \SilverStripe\Control\HTTPResponse_Exception
Handle index requests