/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/system/core/Controller.php

  • Committer: galaxyAbstractor
  • Date: 2013-04-10 15:49:32 UTC
  • mto: (19.1.5 lenasys)
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: galaxyabstractor@gmail.com-20130410154932-4vizlzk0ar5gykvi
* Added an simple admin panel to the codeviewer-cmssy stuff
* Redesigned a bit like the mockups - still stuff to come
* Implemented the codeviewer + admin panel again using the Framework CodeIgniter instead 

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
 * CodeIgniter
 
4
 *
 
5
 * An open source application development framework for PHP 5.1.6 or newer
 
6
 *
 
7
 * @package             CodeIgniter
 
8
 * @author              ExpressionEngine Dev Team
 
9
 * @copyright   Copyright (c) 2008 - 2011, EllisLab, Inc.
 
10
 * @license             http://codeigniter.com/user_guide/license.html
 
11
 * @link                http://codeigniter.com
 
12
 * @since               Version 1.0
 
13
 * @filesource
 
14
 */
 
15
 
 
16
// ------------------------------------------------------------------------
 
17
 
 
18
/**
 
19
 * CodeIgniter Application Controller Class
 
20
 *
 
21
 * This class object is the super class that every library in
 
22
 * CodeIgniter will be assigned to.
 
23
 *
 
24
 * @package             CodeIgniter
 
25
 * @subpackage  Libraries
 
26
 * @category    Libraries
 
27
 * @author              ExpressionEngine Dev Team
 
28
 * @link                http://codeigniter.com/user_guide/general/controllers.html
 
29
 */
 
30
class CI_Controller {
 
31
 
 
32
        private static $instance;
 
33
 
 
34
        /**
 
35
         * Constructor
 
36
         */
 
37
        public function __construct()
 
38
        {
 
39
                self::$instance =& $this;
 
40
                
 
41
                // Assign all the class objects that were instantiated by the
 
42
                // bootstrap file (CodeIgniter.php) to local class variables
 
43
                // so that CI can run as one big super object.
 
44
                foreach (is_loaded() as $var => $class)
 
45
                {
 
46
                        $this->$var =& load_class($class);
 
47
                }
 
48
 
 
49
                $this->load =& load_class('Loader', 'core');
 
50
 
 
51
                $this->load->initialize();
 
52
                
 
53
                log_message('debug', "Controller Class Initialized");
 
54
        }
 
55
 
 
56
        public static function &get_instance()
 
57
        {
 
58
                return self::$instance;
 
59
        }
 
60
}
 
61
// END Controller class
 
62
 
 
63
/* End of file Controller.php */
 
64
/* Location: ./system/core/Controller.php */
 
 
b'\\ No newline at end of file'