Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $this->load->library('PHPExcel');
- $this->load->library('PHPExcel/IOFactory');
- $cache = PHPExcel_CachedObjectStorageFactory::cache_to_phpTemp;
- $cacheSettings = array( ' memoryCacheSize ' => '8MB');
- PHPExcel_Settings::setCacheStorageMethod($cache, $cacheSettings);
- $objReader = new PHPExcel_Reader_Excel2007();
- //$objReader->setReadDataOnly(true);
- $objPHPExcel = $objReader->load("./public/data/taxes.xls");
- $sheet = $objPHPExcel->getSheet(0);
- var_dump($sheet);
- Fatal error: Uncaught exception 'PHPExcel_Exception' with message
- 'Your requested sheet index: 0 is out of bounds.
- The actual number of sheets is 0.'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement