Код: Выделить всё
class Input_data extends CI_Controller{
function __construct()
{
parent::__construct();
$this->load->database();
$this->load->helper("url");
$this->load->library('session');
$this->load->library('phpexcel');
$this->load->library('PHPexcel/iofactory');
}
function index()
{
$names=array();
$no=0;
$inputFileType = 'Excel2007';
$objReader = IOFactory::createReader($inputFileType);
$objPHPExcel = $objReader ->load(FCPATH."/upload/Lap_Final_RLPS.xlsx");
$objWorksheet = $objPHPExcel->setActiveSheetIndex(0);
$maxRow = $objWorksheet->getHighestRow();
for ($i=14; $igetCell(6, $i)->getValue();
$no++;
}
$data['names'] = $names;
$data['no'] = $no;
$this->load->view('/teps/input_data_view',$data);
}}
Код: Выделить всё
$objPHPExcel = $objReader ->load(FCPATH."/upload/Lap_Final_RLPS.xlsx");
Может ли кто-нибудь показать мне, в чем дело? Спасибо.
Подробнее здесь: https://stackoverflow.com/questions/253 ... blank-page