Skip to content

Instantly share code, notes, and snippets.

@rich
Created January 2, 2010 23:45
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 rich/267727 to your computer and use it in GitHub Desktop.
Save rich/267727 to your computer and use it in GitHub Desktop.
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$config['profile.created'] = array(
array('library', 'point_events', 'assign_points', 100)
);
$config['question.deleted'] = array(
array('model', 'answers', 'question_deleted')
);
$config['answer.created'] = array(
array('library', 'point_events', 'assign_points', 5),
);
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Point_events {
var $CI;
function __construct () {
$this->CI =& get_instance();
}
function assign_points ($args, $points, $event) {
}
}
$CI->events->send('profile.created', array('profile' => $profile));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment