4141// ----------------------------------------------------------------------
4242
4343/**
44- * Extend the Loader Core Class
44+ * Extend, Override, Replace the Loader Core Class
4545 *
4646 * When adding functionality to an existing library, the normal method is to
4747 * extend the parent class in CodeIgniter. MY_Loader extends CI_Loader
5050 * inheritance. MY_Loader extends MX_Loader extends CI_Loader
5151 *
5252 * @package third_party/MX/Loader.php
53+ *
5354 * @subpackage MX_Loader
5455 */
5556class MY_Loader extends MX_Loader {
5657 // Method overriding is handled by MX_Loader
5758 // Methods added here will overide both MX_Loader and CI_Loader
58-
59-
60- // TWIGS
61-
62- public function __construct ()
63- {
64- parent ::__construct ();
65- }
66-
6759 // --------------------------------------------------------------------
6860
69-
70-
7161 // --------------------------------------------------------------------
7262
73- /**
74- * Config Loader
75- *
76- * Loads a config file (an alias for CI_Config::load()).
77- *
78- * @uses CI_Config::load()
79- * @param string $file Configuration file name
80- * @param bool $use_sections Whether configuration values should be loaded into their own section
81- * @param bool $fail_gracefully Whether to just return FALSE or display an error message
82- * @return bool TRUE if the file was loaded correctly or FALSE on failure
83- */
84- public function config ($ file , $ use_sections = FALSE , $ fail_gracefully = FALSE )
85- {
86- //return get_instance()->config->load($file, $use_sections, $fail_gracefully);
87-
88- return CI ::$ APP ->config ->load ($ file , $ use_sections , $ fail_gracefully , $ this ->_module );
89-
90-
91- }
92-
93- // --------------------------------------------------------------------
94-
95-
96- // --------------------------------------------------------------------
97- // --------------------------------------------------------------------
98- // --------------------------------------------------------------------
99- // --------------------------------------------------------------------
100- // --------------------------------------------------------------------
101-
102-
103-
10463}
0 commit comments