public function loadView($mViews, $aData = [])
    {
        $sHtml  = '';
        $aViews = array_filter((array) $mViews);
        $oView  = Factory::service('View');

        foreach ($aViews as $sView) {
            $sHtml .= $oView->load($sView, $aData, true);
        }

        $this->oDomPdf->loadHtml($sHtml);
    }
public function loadView($mViews, $aData = [])
    {
        $sHtml  = '';
        $aViews = array_filter((array) $mViews);
        $oView  = Factory::service('View');

        foreach ($aViews as $sView) {
            $sHtml .= $oView->load($sView, $aData, true);
        }

        $this->oDomPdf->loadHtml($sHtml);
    }
public function loadView ( $ mViews , $ aData = [ ] ) { $ sHtml = '' ; $ aViews = array_filter ( ( array ) $ mViews ) ; $ oView = Factory :: service ( 'View' ) ; foreach ( $ aViews as $ sView ) { $ sHtml .= $ oView -> load ( $ sView , $ aData , true ) ; } $ this -> oDomPdf -> loadHtml ( $ sHtml ) ; }
Loads CI views and passes it as HTML to DomPDF

@param  mixed $mViews An array of views, or a single view as a string
@param  array $aData  View variables to pass to the view

@return void
Loads CI views and passes it as HTML to DomPDF