Changeset 1168 for trunk/system/libraries/Loader.php
- Timestamp:
- 11/18/2007 03:13:52 AM (13 months ago)
- Files:
-
- 1 modified
-
trunk/system/libraries/Loader.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/Loader.php
r1015 r1168 109 109 public function helper($name) 110 110 { 111 // Allow recursive loading 112 if (is_array($name)) 113 { 114 $helpers = $name; 115 116 foreach($helpers as $name) 117 { 118 $this->helper($name); 119 } 120 } 121 else 122 { 123 include Kohana::find_file('helpers', $name, TRUE); 124 } 111 // Just don't do this... there's no point. 112 Log::add('debug', 'Using $this->load->helper() is deprecated. See Kohana::auto_load().'); 125 113 } 126 114 … … 158 146 $model = new $class(); 159 147 148 // Return the model 160 149 if ($alias === TRUE) 161 150 return $model;
