Skip to content

Instantly share code, notes, and snippets.

View chabibnr's full-sized avatar
🏠
Working from home

Chabib Nurozak chabibnr

🏠
Working from home
View GitHub Profile
public function actionReadImportFile($id) {
$data = Yii::$app->session['import_kuesioner'];
$path = \Yii::getAlias('@webroot') . '/uploads/kuesioner/' . $data . '';
try {
$inputFileType = \PHPExcel_IOFactory::identify($path);
$objReader = \PHPExcel_IOFactory::createReader($inputFileType);
libxml_use_internal_errors(true);
@chabibnr
chabibnr / Yii_Library.php
Last active March 5, 2022 00:53
Library Yii2 for Codeigniter
<?php
define('YII_ENABLE_ERROR_HANDLER', false);
/**
* Class Yii_Library
* @package Libraries
*/
class Yii_Library