/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/controllers/codeviewer.php

  • Committer: Erik Wikström
  • Date: 2013-04-09 09:21:05 UTC
  • mto: (21.1.1 lenasys)
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: wikxen@gmail.com-20130409092105-u1u3gxbql1vx65a7
Added missing WebGL javascript files, moved bothe them and the existing ones to /js. Updated references

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
 
3
 
class Codeviewer extends CI_Controller {
4
 
 
5
 
        public function show($course, $example, $page){
6
 
                $this->load->model('codeviewer/Codeviewer_model');
7
 
 
8
 
                $files = $this->Codeviewer_model->getFiles($course, $example,$page);
9
 
                $editorHTML = "";
10
 
                foreach ($files as $file) {
11
 
                        $editorHTML .= $this->Codeviewer_model->showFile($file, "html");
12
 
                }
13
 
 
14
 
                $doc = $this->Codeviewer_model->getDoc($course, $example, $page);
15
 
 
16
 
                $this->load->view('codeviewer/codeviewer', array("editors" => $editorHTML, "documentation" => $doc));
17
 
        }
18
 
}
 
 
b'\\ No newline at end of file'