public function renderExcel()
    {
        $this->beforeRender();
        $list = $this->getListViewData();

        $helper = new ExcelHelper();
 
        $helper->setHeaderClosure(function ($key, $value) {
            $this->getSlim()->response()->header($key, $value);
        });

        $helper->genExcel($this, $list, $this->getExportFilename());
    }
public function renderExcel()
    {
        $this->beforeRender();
        $list = $this->getListViewData();

        $helper = new ExcelHelper();
 
        $helper->setHeaderClosure(function ($key, $value) {
            $this->getSlim()->response()->header($key, $value);
        });

        $helper->genExcel($this, $list, $this->getExportFilename());
    }
public function renderExcel ( ) { $ this -> beforeRender ( ) ; $ list = $ this -> getListViewData ( ) ; $ helper = new ExcelHelper ( ) ; $ helper -> setHeaderClosure ( function ( $ key , $ value ) { $ this -> getSlim ( ) -> response ( ) -> header ( $ key , $ value ) ; } ) ; $ helper -> genExcel ( $ this , $ list , $ this -> getExportFilename ( ) ) ; }
Override render Excel function
@throws Exception\NoFieldException
Override render Excel function