Skip to content
PHPExcel Generator for CodeIgniter
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Excel Generator

PHPExcel Generator for CodeIgniter


class Welcome extends CI_Controller {

    public function __construct() {
    public function index() {
        $query = $this->db->get('users');
        $this->excel_generator->set_header(array('Name', 'Address', 'Email'));
        $this->excel_generator->set_column(array('name', 'address', 'email'));
        $this->excel_generator->set_width(array(25, 30, 15));
        $this->excel_generator->exportTo2007('report users');
You can’t perform that action at this time.