I'm a newer in cakephp. I want to build a download system with cake.
I host the file at WWW_ROOT.DS.'upload'.DS.$filename
(eg:www.aaa.com/upload/aaa.txt).
I use the code
      $this->redirect("/upload/$file_name");
to download the file.
But the system told me:
    Missing controller
    You are seeing this error because controller UploadController could
not be found.
    Fatal: Unable to load controller UploadController
    Fatal: Create Class:
    <?php
     class UploadController extends AppController
     {
         var $name = 'Upload';
     }
   ?>
    in file : app\controllers\upload_controller.php
I know something wrong in my code. I mean upload is a dir not a
controller.
What can I do? Help me.


--~--~---------~--~----~------------~-------~--~----~
 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