/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/ExamplesController.php

  • Committer: gustav.hartvigsson at gmail
  • Date: 2013-04-03 11:52:56 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20130403115256-sz6zermzoom4lifc
Ignored .DS_Store files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2
 
 
3
 
class ExamplesController extends CI_Controller {
4
 
 
5
 
        /**
6
 
         * Index Page for this controller.
7
 
         *
8
 
         * Maps to the following URL
9
 
         *              http://example.com/index.php/welcome
10
 
         *      - or -  
11
 
         *              http://example.com/index.php/welcome/index
12
 
         *      - or -
13
 
         * Since this controller is set as the default controller in 
14
 
         * config/routes.php, it's displayed at http://example.com/
15
 
         *
16
 
         * So any other public methods not prefixed with an underscore will
17
 
         * map to /index.php/welcome/<method_name>
18
 
         * @see http://codeigniter.com/user_guide/general/urls.html
19
 
         */
20
 
        public function index()
21
 
        {
22
 
                /* headData manages the <head>-tag and loads corresponding CSS.
23
 
                 * The views that are entered will load CSS with same name.
24
 
                 * Ex. test_header will load test_header.css
25
 
                 */
26
 
                $headData['list'] = array('header', 'examplesMenu', 'examplesBody');
27
 
                $this->load->view('headTag', $headData);
28
 
                $this->load->view('header');
29
 
                
30
 
                // menuData loads items to the menu.
31
 
                $menuData['list'] = array('Quizzes', 'JavaScript', 'jQuery', 'AJAX API', 'SQL', 'PHP', 'Rollekunskap');
32
 
                $this->load->view('examplesMenu', $menuData);
33
 
                
34
 
                // examples matrix loads headers and example titles to the body.
35
 
                $examples['titles'] = Array(
36
 
                        'JavaScript' => Array('Example0', 'Example1', 'Example2'),
37
 
                        'jQuery' => Array('Example0', 'ruben', 'Example2'),
38
 
                        'AJAX API' => Array('Example0', 'Example1', 'Example2'),
39
 
                        'SQL' => Array('Example0', 'Example1', 'Example2'),
40
 
                        'PHP' => Array('Example0', 'Example1', 'Example2'),
41
 
                        'Rollekunskap' => Array('Rolle', 'is', 'awsome', 'because', 'he', 'can', 'fix', 'stuffs')
42
 
                );
43
 
                $this->load->view('examplesBody', $examples);   
44
 
        }
45
 
}
46
 
 
47
 
/* End of file welcome.php */
48
 
/* Location: ./application/controllers/welcome.php */
 
 
b'\\ No newline at end of file'