public function cookies($name = null, $val = null, array $params = array())
    {
        $num = func_num_args();
        
        if (!$num)
            return $this->_dispatcher()->response()->cookies();
        elseif ($num == 1)
            return $this->_dispatcher()->response()->cookies()->get($name);
        else {
            if ($val === null)
                $this->_dispatcher()->response()->cookies()->delete($name);
            else
                return $this->_dispatcher()->response()->cookies()->add($name, $val, $params);
        }
    }
public function cookies($name = null, $val = null, array $params = array())
    {
        $num = func_num_args();
        
        if (!$num)
            return $this->_dispatcher()->response()->cookies();
        elseif ($num == 1)
            return $this->_dispatcher()->response()->cookies()->get($name);
        else {
            if ($val === null)
                $this->_dispatcher()->response()->cookies()->delete($name);
            else
                return $this->_dispatcher()->response()->cookies()->add($name, $val, $params);
        }
    }
public function cookies ( $ name = null , $ val = null , array $ params = array ( ) ) { $ num = func_num_args ( ) ; if ( ! $ num ) return $ this -> _dispatcher ( ) -> response ( ) -> cookies ( ) ; elseif ( $ num == 1 ) return $ this -> _dispatcher ( ) -> response ( ) -> cookies ( ) -> get ( $ name ) ; else { if ( $ val === null ) $ this -> _dispatcher ( ) -> response ( ) -> cookies ( ) -> delete ( $ name ) ; else return $ this -> _dispatcher ( ) -> response ( ) -> cookies ( ) -> add ( $ name , $ val , $ params ) ; } }
Retrieves Cookies instance, retrieves a cookie or
sets a cookie.
Retrieves Cookies instance retrieves a cookie or sets a cookie .