/lenasys/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/trunk

« back to all changes in this revision

Viewing changes to codeigniter/application/models/admin/admin_model.php

  • Committer: a11andoh
  • Date: 2013-05-21 15:32:46 UTC
  • mto: This revision was merged to the branch mainline in revision 86.
  • Revision ID: a11andoh@student.his.se-20130521153246-cptdjtae07zl1msn
Added line for coursename sorting in getCourses function

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
                $this->load->database();
13
13
        }
14
14
 
 
15
 
15
16
        function getCourses() {
 
17
                $this->db->order_by("name", "asc");
16
18
                $query = $this->db->get('Courses');
17
19
                return $query->result();
18
20
        }