Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function activerecord_autoload($class_name)
- {
- $path = ActiveRecord\Config::instance()->get_model_directory();
- if(is_array($path))
- {
- foreach($path as $k => $dir)
- {
- if( activerecord_load( $dir, $class_name ) )
- return;
- }
- }else{
- activerecord_load( $path, $class_name );
- }
- }
- function activerecord_autoload($class_name)
- {
- $path = ActiveRecord\Config::instance()->get_model_directory();
- if (is_array($path))
- {
- foreach ($path as $k => $dir)
- {
- if (activerecord_load($dir, $class_name))
- return;
- }
- }
- else
- activerecord_load($path, $class_name);
- }
Add Comment
Please, Sign In to add comment