Re: Files folder?

2008-06-04 Thread Janoma
Hi everyone, I'm new to CakePHP, and I've been trying to figure out how to do these links in a proper way. Explicit links are not so useful to me, since I'm developing in my own computer, but as soon as the host and domain for the website are ready I'll have to upload it, and of course the links

Re: Files folder?

2008-04-09 Thread G Kramer
I think I can answer my own question now (which was pretty easy, once I got it).You have to construct the links to the files explicitly: ie, html-link(click here,http://www.mydomain.com/ files/example.pdf). Or, on a system without mod_rewrite, the link would be to:

Re: Files folder?

2008-04-08 Thread G Kramer
Perfect. I got it now. It works as you indicated with no missing controller error. Side question, how would you get this to work if you weren't using mod_rewrite (anything in the routes.php that you could configure for that?). Mostly just curious... Thanks, G Kramer On Apr 7, 5:24 am,

Re: Files folder?

2008-04-07 Thread Steven M. Parker
The answer to this is that the mod_rewrite (.htaccess) files are already setup to handle this. If you access a file hosted in /app/ webroot/files/example.pdf from the URL www.example.com/files/example.pdf, it will redirect you to example.com/app/webroot/files/example.pdf. If however the file

Re: Files folder?

2008-04-06 Thread G Kramer
I'm sorry, I have a similar issue and don't quite follow this response. This says I don't need to change the routes/rewrite rules but yet I still will get an error ... aren't we talking about how to get rid of the error? Thanks, Greg K On Mar 28, 11:51 am, Sliv [EMAIL PROTECTED] wrote:

Files folder?

2008-03-28 Thread Kyle Decot
I am building a website for a client and they have a large amount of PDF's so I decided I would put them in: app/webroot/files/pdf but when I navigate to: www.example.com/files/pdf/example.pdf i get: Error: FilesController could not be found. How can I make it allow me access to this folder. Or

Re: Files folder?

2008-03-28 Thread Sliv
double check the url is accurate - you'll get this error if the target is unreachable/doesn't exist - if the file is there and the url is accurate it should work. try with a simple test.txt file in the root of files On Mar 28, 10:49 am, Kyle Decot [EMAIL PROTECTED] wrote: I am building a

Re: Files folder?

2008-03-28 Thread Chris Hartjes
On Fri, Mar 28, 2008 at 10:49 AM, Kyle Decot [EMAIL PROTECTED] wrote: I am building a website for a client and they have a large amount of PDF's so I decided I would put them in: app/webroot/files/pdf but when I navigate to: www.example.com/files/pdf/example.pdf i get: Error:

Re: Files folder?

2008-03-28 Thread Sam Sherlock
IfModule mod_rewrite.c RewriteEngine on RewriteRule (_taste|files|phpmyadmin)/(.*) - [L] RewriteRule^$webroot/[L] RewriteRule(.*) webroot/$1[L] /IfModule On 28/03/2008, Chris Hartjes [EMAIL PROTECTED] wrote: On Fri, Mar 28, 2008 at 10:49 AM, Kyle

Re: Files folder?

2008-03-28 Thread Sliv
files is a special folder that should work for direct links to files within it, without needing to modify routes/rewrite from a default install, but you will get a filescontroller error for a bad link --~--~-~--~~~---~--~~ You received this message because you

Re: Files folder?

2008-03-28 Thread Галкин Николай
try /pdf/example.pdf or www.example.com/pdf/example.pdf I am building a website for a client and they have a large amount of PDF's so I decided I would put them in: app/webroot/files/pdf but when I navigate to: www.example.com/files/pdf/example.pdf i get: Error: FilesController could