3
Copyright (C) Högskolan i Skövde <his.se> 2013.
4
Copyright (C) Oscar Jonsson <c11oscjo@student.his.se> 2013.
5
Copyright (C) Simon Bergöö <a11simbe@student.his.se> 2013.
6
This file is part of LenaSYS
8
This program is free software: you can redistribute it and/or modify
9
it under the terms of the GNU Lesser General Public License as published by
10
the Free Software Foundation, either version 3 of the License.
12
This program is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU Lesser General Public License for more details.
17
You should have received a copy of the GNU Lesser General Public License
18
along with this program. If not, see <http://www.gnu.org/licenses/>.
21
class layout extends CI_Controller {
23
public function index() {
24
$headData['list'] = array('headTag', 'header', 'layout_view');
25
$this->load->view('headTag', $headData);
26
$this->load->helper('form');
27
$this->load->model('user');
29
'userType' => $this->user->getUserType(),
30
'userName' => $this->user->getUserName()
33
$this->load->view('header', $userInfo);
34
$this->load->view('layout_view');
37
public function test($arg1){
38
echo "<h1> Layout ".$arg1."</h1>".
39
"<p>You have pressed layout ".$arg1.". (This is only a test-function and will be removed.)</p>";
b'\\ No newline at end of file'