1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
\r
5 * An open source application development framework for PHP 4.3.2 or newer
\r
7 * @package CodeIgniter
\r
8 * @author ExpressionEngine Dev Team
\r
9 * @copyright Copyright (c) 2008, EllisLab, Inc.
\r
10 * @license http://codeigniter.com/user_guide/license.html
\r
11 * @link http://codeigniter.com
\r
12 * @since Version 1.3
\r
16 // ------------------------------------------------------------------------
\r
19 * CI_BASE - For PHP 4
\r
21 * This file is used only when CodeIgniter is being run under PHP 4.
\r
23 * In order to allow CI to work under PHP 4 we had to make the Loader class
\r
24 * the parent of the Controller Base class. It's the only way we can
\r
25 * enable functions like $this->load->library('email') to instantiate
\r
26 * classes that can then be used within controllers as $this->email->send()
\r
28 * PHP 4 also has trouble referencing the CI super object within application
\r
29 * constructors since objects do not exist until the class is fully
\r
30 * instantiated. Basically PHP 4 sucks...
\r
32 * Since PHP 5 doesn't suffer from this problem so we load one of
\r
33 * two files based on the version of PHP being run.
\r
35 * @package CodeIgniter
\r
36 * @subpackage codeigniter
\r
37 * @category front-controller
\r
38 * @author ExpressionEngine Dev Team
\r
39 * @link http://codeigniter.com/user_guide/
\r
41 class CI_Base extends CI_Loader {
\r
45 // This allows syntax like $this->load->foo() to work
\r
46 parent::CI_Loader();
\r
47 $this->load =& $this;
\r
49 // This allows resources used within controller constructors to work
\r
51 $OBJ = $this->load; // Do NOT use a reference.
\r
55 function &get_instance()
\r
68 /* End of file Base4.php */
\r
69 /* Location: ./system/codeigniter/Base4.php */