Show
Ignore:
Timestamp:
11/18/2007 03:13:52 AM (13 months ago)
Author:
Shadowhand
Message:

Batch of core changes:

  • Added a configuration file for profiler, to enable/disable specific profiler information
  • Implemented configuration handling in Profiler and views/kohana_profiler.php
  • Added system/models/form.php and views/kohana_form.php, see: http://kohanaphp.com/tutorials/quick_forms.html
  • text::random('unique') now uses sha1, instead of md5
  • Added a couple of missing connect() calls in Database
  • Added Database::list_fields() and Database_Mysql::list_fields()
  • Fixed Database_Mysql::escape_table()
  • Changed Loader::helper() to just do a Log::add('debug') instead of actually loading the helper
  • Updated some comment styles to prepare for Kodoc

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/Loader.php

    r1015 r1168  
    109109        public function helper($name) 
    110110        { 
    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().'); 
    125113        } 
    126114 
     
    158146                $model = new $class(); 
    159147 
     148                // Return the model 
    160149                if ($alias === TRUE) 
    161150                        return $model;