Skip to content

Instantly share code, notes, and snippets.

@jlamim
Created August 3, 2016 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlamim/775eac7d33a1774b6cf7c00f95e79c6d to your computer and use it in GitHub Desktop.
Save jlamim/775eac7d33a1774b6cf7c00f95e79c6d to your computer and use it in GitHub Desktop.
ChartJS + CodeIgniter
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$route['default_controller'] = 'Base';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;
$route['donnutchart'] = "Base";
$route['piechart'] = "Base";
$route['linechart'] = "Base";
$route['barchart'] = "Base";
$route['donnutchart/data'] = "Base/Donnutchart";
$route['piechart/data'] = "Base/Piechart";
$route['linechart/data'] = "Base/Linechart";
$route['barchart/data'] = "Base/Barchart";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment