Re: question: file not found or missing controller error?

2009-08-17 Thread Martin Westin

If you don't deal with the webserver config much it would be easy to
overlook that the whole Cake app more or less acts as an error page
for  missing files. Any "real" file is sent directly and any missing
file results in php and Cake getting the url to try to make sense of
it.


On Aug 17, 10:08 am, WebbedIT  wrote:
> Thanks Martin, so the real answer to my question was .. yes, you are
> just being daft :o)   Just goes to show I have not put a CakePHP
> project into production.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: question: file not found or missing controller error?

2009-08-17 Thread WebbedIT

Thanks Martin, so the real answer to my question was .. yes, you are
just being daft :o)   Just goes to show I have not put a CakePHP
project into production.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: question: file not found or missing controller error?

2009-08-17 Thread Martin Westin

Configure::write('debug', n );
Setting debug to 0 will make make respond with a 404.

Anytime debug is on (more than 0), Cake expects you to be building or
testing the application. Cake does not try to make a difference
between the missing file "/posts/edit/1" and "/files/images/
not_here.jpg". It simply assumes that since it is not a file... the
first "folder" is the controller... the second the action

/Martin


On Aug 16, 12:56 pm, WebbedIT  wrote:
> I have just started uploading files using the plug-in found at:
>
> http://www.milesj.me/resources/script/uploader-plugin
>
> I have this all working fine, so I can recommend the plug-in for a
> fast and easy solution to uploading files.
>
> Now that I have a selection of files uploaded to the server I want to
> view them and if I type in the path and filenames correctly I see them
> not a problem.  However, if I make a typo cake shows a missing
> controller error rather then a file not found.
>
> Am I just being daft and the server is logging a file not found error,
> but cake is being clever and trying to supply a meaningful error? or
> is there something more sinister here in that a missing controller
> error is not what should be getting displayed when trying to access
> things in /app/webroot/files/...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



question: file not found or missing controller error?

2009-08-16 Thread WebbedIT

I have just started uploading files using the plug-in found at:

http://www.milesj.me/resources/script/uploader-plugin

I have this all working fine, so I can recommend the plug-in for a
fast and easy solution to uploading files.

Now that I have a selection of files uploaded to the server I want to
view them and if I type in the path and filenames correctly I see them
not a problem.  However, if I make a typo cake shows a missing
controller error rather then a file not found.

Am I just being daft and the server is logging a file not found error,
but cake is being clever and trying to supply a meaningful error? or
is there something more sinister here in that a missing controller
error is not what should be getting displayed when trying to access
things in /app/webroot/files/...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---