Skip to content

Instantly share code, notes, and snippets.

@755
755 / MY_Log.php
Created October 22, 2012 09:58
Change codeigniter Log class to work with Raven-php
<?php
class MY_Log extends CI_Log {
protected $_threshold = 1;
protected $_enabled = TRUE;
protected $_levels = array('ERROR' => '1', 'DEBUG' => '2', 'INFO' => '3', 'ALL' => '4');
protected $_raven_levels = array();
protected $_client;
@755
755 / MY_Session.php
Created October 22, 2012 09:55
Change codeigniter session to work with JSON
<?php
class MY_Session extends CI_Session {
/**
* Serialize an array
*
* This function first converts any slashes found in the array to a temporary
* marker, so when it gets unserialized the slashes will be preserved
*
* @access private