public function output()
    {
        $count = count($this->views);

        if ($count === 0) {
            throw new \LogicException('You need to generate() first');
        } elseif ($count > 1) {
            return $this->zip();
        }

        $view = $this->views[0];
        $view['file']->outputFile($view['name']);
    }
public function output()
    {
        $count = count($this->views);

        if ($count === 0) {
            throw new \LogicException('You need to generate() first');
        } elseif ($count > 1) {
            return $this->zip();
        }

        $view = $this->views[0];
        $view['file']->outputFile($view['name']);
    }
public function output ( ) { $ count = count ( $ this -> views ) ; if ( $ count === 0 ) { throw new \ LogicException ( 'You need to generate() first' ) ; } elseif ( $ count > 1 ) { return $ this -> zip ( ) ; } $ view = $ this -> views [ 0 ] ; $ view [ 'file' ] -> outputFile ( $ view [ 'name' ] ) ; }
Outputs the View with appropriated headers

If there are more than one view objects, it calls zip() instead

@throws \LogicException If there is no view to output
Outputs the View with appropriated headers