<?php

class Packages extends CIF_Controller {

    public $layout = 'full';
    public $module = 'packages';
    public $model = 'Packages_model';

    public function __construct() {
        parent::__construct();
        $this->load->model($this->model);
        $this->_primary_key = $this->{$this->model}->_primary_keys[0];
    }

    public function index() {
        $data['items'] = $this->db->order_by('package_id','asc')->get('packages')->result();
        $this->load->view($this->module, $data);
    }

}
