Hi All,

I've been using the FileHandler class for uploading, and it seems to be 
working fine in versions of cake up to about 1.1.7.  But when trying to 
use the same code under 1.1.12 (and probably 1.1.14) it's telling me

Fatal error: Cannot instantiate non-existent class: filehandler in 
/home/websvr/realconst/dev/app/controllers/admin_controller.php on line 36

The file hander is class FileHandler, in file_handler.php, in the Models 
subdirectory.  It is defined thusly:

class FileHandler extends Model {
...
}

and is instantiated (or I'm attempting to!) thusly, in a function in my 
controller:

     function adm_imgupload() {
         // If not empty, process the file, else display the form...
         if ( !empty($_FILES) ) {
             $FileHandler =& new FileHandler();

This has worked fine, but broke somewhere between the two versions 
above.  Suggestions for corrections would be appreciated!

-Scott




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to