ShoppingCart_Controller::index PHP Method

index() public method

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