Skip to content

Instantly share code, notes, and snippets.

@walkerdigital
Created October 22, 2016 23:03
A blank default model used in CodeIgniter.
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Pages_model extends CI_Model {
public $variable;
public function __construct()
{
parent::__construct();
$this->load->database();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment