public function download()
    {
        // define output
        $output = $this->getOutput();

        foreach ($this->getHeaders(false) as $header) {
            header($header);
        }

        // echo the output and it will be a download
        echo $output;
    }
public function download()
    {
        // define output
        $output = $this->getOutput();

        foreach ($this->getHeaders(false) as $header) {
            header($header);
        }

        // echo the output and it will be a download
        echo $output;
    }
public function download ( ) { // define output $ output = $ this -> getOutput ( ) ; foreach ( $ this -> getHeaders ( false ) as $ header ) { header ( $ header ) ; } // echo the output and it will be a download echo $ output ; }
Download a vcard or vcal file to the browser.
Download a vcard or vcal file to the browser .