/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: Gustav Hatvigsson
  • Date: 2013-05-20 11:59:29 UTC
  • mfrom: (79.1.1 lenasys)
  • Revision ID: gustav.hartvigsson@gmail.com-20130520115929-bzpbvznbj9sd7ga6
merged changes to the admin model and controller from Chelwing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
                return $query->result();
18
18
        }
19
19
 
20
 
        function addCourse($cid, $name){
 
20
        function addCourse($cid, $name, $courseData){
21
21
                $data = array(
22
22
                        'courseID' => $cid ,
23
 
                        'name' => $name
 
23
                        'name' => $name,
 
24
                        'courseData' => $courseData
24
25
                        );
25
26
 
26
27
                $this->db->insert('Courses', $data);