Skip to content

Instantly share code, notes, and snippets.

View stoddsie's full-sized avatar

Jaggy Pixel Games stoddsie

  • Jaggy Pixel Games
View GitHub Profile
@stoddsie
stoddsie / pagination_setup.php
Last active December 15, 2015 22:59
Codeigniter:Pagination setup (standard)
//pagination
$this->load->library('pagination');
$per_page = 15;
$config['uri_segment'] = 3;
$config['base_url'] = '/';
$config['anchor_class'] = ' class="pagination" ';
$config['total_rows'] = TOTAL_RECORDS;
$config['per_page'] = $per_page;
$config['use_page_numbers'] = TRUE;
@stoddsie
stoddsie / todays_date.php
Created May 21, 2013 07:33
CODEIGNITER:today's date
$this->load->helper('date');
$today = date('Y-m-d H:i:s');
@stoddsie
stoddsie / document.php
Created September 24, 2013 14:23
restQuery
$this->rest->get('enquiry_document_markup', array('document_id' => $document_id, 'environment' => 'test'), 'json');
@stoddsie
stoddsie / gist:0bc983b3e9c76a33d77a3cf3ee97c36d
Last active February 4, 2017 08:06
PHP:Error Reporting
error_reporting(E_ERROR);
ini_set('display_errors', 1);