Skip to content

Instantly share code, notes, and snippets.

@techies23 techies23/MY_Controller.php Secret
Created Feb 1, 2016

Embed
What would you like to do?
MY_CONTROLLER
<?php
class MY_Controller extends CI_Controller {
public $data = array();
function __construct() {
parent::__construct();
$this->data['site_title'] = config_item('site_name');
$this->load->helper('language');
$this->data['errors'] = array();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.