Maap nih ganggu lagi.
Udah googling tapi kebanyakan bahas export excel
1. Ada gak extension buat Import Excel di Yii ke CGridView.
2. Trus selain tampil di CGridView , itu data masuk juga ke databasenya. Gimana ya gan?.
Mohon pencerahannya...
Posted 27 June 2011 - 03:04 AM
Posted 27 June 2011 - 12:09 PM
Posted 27 June 2011 - 08:13 PM
rei, on 27 June 2011 - 12:09 PM, said:
Posted 27 June 2011 - 09:57 PM
putrilangit, on 27 June 2011 - 08:32 PM, said:
Yii::import('ext.phpexcelreader.JPhpExcelReader');
$data = new JPhpExcelReader('xxx.xls');
for ($i = 1; $i <= $data->sheets[0]['numRows']; $i++)
{
for ($j = 1; $j <= $data->sheets[0]['numCols']; $j++)
{
$content = $data->sheets[0]['cells'][$i][$j];
.....
}
}
Posted 20 July 2011 - 02:13 AM
rei, on 27 June 2011 - 09:57 PM, said:
$data=new JPhpExcelReader('fileexcel.xls')
Posted 20 July 2011 - 06:04 AM
$data = new JPhpExcelReader('protected/data/fileexcel.xls');$data = new JPhpExcelReader(Yii::app()->getBasePath(). '\data\fileexcel.xls');
Posted 21 July 2011 - 04:02 AM
rei, on 20 July 2011 - 06:04 AM, said:
$data = new JPhpExcelReader('protected/data/fileexcel.xls');$data = new JPhpExcelReader(Yii::app()->getBasePath(). '\data\fileexcel.xls');
Posted 22 July 2011 - 01:17 AM
$data = new JPhpExcelReader('import/cabinet.xls');Yii::app()->getBasePath(). '\data\fileexcel.xls'
E:\xampp\htdocs\Aplikasiku\protected\data\fileexcel.xls
Posted 22 July 2011 - 02:46 AM
rei, on 22 July 2011 - 01:17 AM, said:
Posted 23 July 2011 - 09:23 PM
putrilangit, on 22 July 2011 - 02:46 AM, said:
Posted 24 July 2011 - 09:40 PM
54byte, on 23 July 2011 - 09:23 PM, said:
54byte, on 23 July 2011 - 09:23 PM, said:
Posted 25 July 2011 - 01:59 AM
putrilangit, on 24 July 2011 - 09:40 PM, said:
Posted 25 July 2011 - 03:51 AM
54byte, on 25 July 2011 - 01:59 AM, said:
915 function Spreadsheet_Excel_Reader($file='',$store_extended_info=true,$outputEncoding='') {
916 $this->_ole =& new OLERead();
917 $this->setUTFEncoder('iconv');
918 if ($outputEncoding != '') {
919 $this->setOutputEncoding($outputEncoding);
910 }
Posted 25 July 2011 - 06:39 AM
putrilangit, on 25 July 2011 - 03:51 AM, said:
915 function Spreadsheet_Excel_Reader($file='',$store_extended_info=true,$outputEncoding='') {
916 $this->_ole =& new OLERead();
917 $this->setUTFEncoder('iconv');
918 if ($outputEncoding != '') {
919 $this->setOutputEncoding($outputEncoding);
910 }
Posted 26 July 2011 - 03:51 AM
54byte, on 25 July 2011 - 06:39 AM, said:
Quote
Posted 28 July 2011 - 04:57 AM
54byte, on 26 July 2011 - 02:46 PM, said:
Posted 05 September 2011 - 01:03 AM
putrilangit, on 28 July 2011 - 04:57 AM, said:
Fatal error: Class 'COutputProcessor' not found in D:\xampp\htdocs\yii-1.1.8.r3324\framework\web\widgets\CContentDecorator.php on line 33
spl_autoload_unregister(array('YiiBase','autoload')); include(PHPExcel_Shared_ZipStreamWrapper.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory
Posted 06 September 2011 - 08:34 PM
Firman, on 05 September 2011 - 01:03 AM, said:
Fatal error: Class 'COutputProcessor' not found in D:\xampp\htdocs\yii-1.1.8.r3324\framework\web\widgets\CContentDecorator.php on line 33
spl_autoload_unregister(array('YiiBase','autoload')); include(PHPExcel_Shared_ZipStreamWrapper.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory