function import($path, $folder = 'classes')
 {
  $path = str_replace('/', DIRECTORY_SEPARATOR, $path);
  if (is_file(COREPATH.$folder.DIRECTORY_SEPARATOR.$path.'.php'))
  {
   require_once COREPATH.$folder.DIRECTORY_SEPARATOR.$path.'.php';
  }
                
  if (is_file(APPPATH.$folder.DIRECTORY_SEPARATOR.$path.'.php'))
  {
   require_once APPPATH.$folder.DIRECTORY_SEPARATOR.$path.'.php';
  }
 }
		It looks like you're new here. If you want to get involved, click one of these buttons!