/lenasys/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/trunk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class ExamplesController extends CI_Controller {

	/**
	 * Index Page for this controller.
	 *
	 * Maps to the following URL
	 * 		http://example.com/index.php/welcome
	 *	- or -  
	 * 		http://example.com/index.php/welcome/index
	 *	- or -
	 * Since this controller is set as the default controller in 
	 * config/routes.php, it's displayed at http://example.com/
	 *
	 * So any other public methods not prefixed with an underscore will
	 * map to /index.php/welcome/<method_name>
	 * @see http://codeigniter.com/user_guide/general/urls.html
	 */
	public function index()
	{
		/* headData manages the <head>-tag and loads corresponding CSS.
		 * The views that are entered will load CSS with same name.
		 * Ex. test_header will load test_header.css
		 */
		$headData['list'] = array('header', 'examplesMenu', 'examplesBody');
		$this->load->view('headTag', $headData);
		$this->load->view('header');
		
		// menuData loads items to the menu.
		$menuData['list'] = array('Quizzes', 'JavaScript', 'jQuery', 'AJAX API', 'SQL', 'PHP', 'Rollekunskap');
		$this->load->view('examplesMenu', $menuData);
		
		// examples matrix loads headers and example titles to the body.
		$examples['titles'] = Array(
			'JavaScript' => Array('Example0', 'Example1', 'Example2'),
			'jQuery' => Array('Example0', 'ruben', 'Example2'),
			'AJAX API' => Array('Example0', 'Example1', 'Example2'),
			'SQL' => Array('Example0', 'Example1', 'Example2'),
			'PHP' => Array('Example0', 'Example1', 'Example2'),
			'Rollekunskap' => Array('Rolle', 'is', 'awsome', 'because', 'he', 'can', 'fix', 'stuffs')
		);
		$this->load->view('examplesBody', $examples);	
	}
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */