public function setCookie($code)
    {
        $lifespan = $this->config->get('currency_cookie_lifespan', 365 * 24 * 60 * 60);
        $this->request->setCookie('currency', $code, $lifespan);
    }
public function setCookie($code)
    {
        $lifespan = $this->config->get('currency_cookie_lifespan', 365 * 24 * 60 * 60);
        $this->request->setCookie('currency', $code, $lifespan);
    }
public function setCookie ( $ code ) { $ lifespan = $ this -> config -> get ( 'currency_cookie_lifespan' , 365 * 24 * 60 * 60 ) ; $ this -> request -> setCookie ( 'currency' , $ code , $ lifespan ) ; }
Saves a currency code in cookie
@param string $code
Saves a currency code in cookie