15
15
* This shows the codeviewer page
17
public function show($cid, $category, $subcategory, $example){
18
/* $headData['list'] = array('headTag', 'header', 'layout_view');
19
$this->load->view('headTag', $headData);
20
$this->load->helper('form');
21
$this->load->model('user');
23
'userType' => $this->user->getUserType(),
24
'userName' => $this->user->getUserName()
17
public function show($course, $example, $page){
27
18
$this->load->model('codeviewer/Codeviewer_model');
29
$editorHTML = $this->Codeviewer_model->getCode($cid, $category, $subcategory, $example);
20
$editorHTML = $this->Codeviewer_model->getCode($course, $example, $page);
31
$doc = $this->Codeviewer_model->getDoc($cid, $category, $subcategory, $example);
22
$doc = $this->Codeviewer_model->getDoc($course, $example, $page);
33
24
// This loads the view. It's stored in application/views/codeviewer/codeviewer.php
34
25
// Do note that application/views should not be in the first argument of view()
35
26
// The second argument is data to be shown in the view. "editors" => "test" would
36
27
// generate an $editors variable in the view containing "test"
37
// $this->load->view('header', $userInfo);
38
28
$this->load->view('codeviewer/codeviewer', array("editors" => $editorHTML, "documentation" => $doc));
b'\\ No newline at end of file'