Skip to content

Instantly share code, notes, and snippets.

@danielzzz
Created May 12, 2015 15:12
Show Gist options
  • Save danielzzz/9348e305472cfad4c635 to your computer and use it in GitHub Desktop.
Save danielzzz/9348e305472cfad4c635 to your computer and use it in GitHub Desktop.
vendor import?
<?php
namespace App\Controller\Admin;
use App\Controller\AppController;
use \PhpExcel;
use \PhpExcel\IOFactory;
/**
* Members Controller
*
* @property \App\Model\Table\MembersTable $Members
*/
class MembersController extends AppController
{
public function initialize() {
parent::initialize();
$this->layout = 'AyDBootstrap/admin';
}
public function import() {
$objPHPExcel = PHPExcel_IOFactory::load("test.xls");
exit;
//
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment