Put your file in /web directory then to link from symfony use for
example :
link_to('My file', public_path('/uploads/myfile.whatyouwwant'))
Don't forget to start with "/" this does a reference to /web/ (this
should be the root of a virtualhost)
On Mar 23, 4:23 pm, Lee Bolding wrote:
> Sorry, I
Sorry, I should have made myself clearer.
If the file/directory exists in the web directory, it will get served
by the webserver, not Symfony.
On 23 Mar 2009, at 13:56, Eno wrote:
>
> On Mon, 23 Mar 2009, Lee Bolding wrote:
>
>> If the file/directory exists in the web directory, it will get
On Mon, 23 Mar 2009, Lee Bolding wrote:
> If the file/directory exists in the web directory, it will get served.
Yeah, but my understanding (perhaps erroneous) is that the original
poster does NOT want symfony to handle that file...
--
--~--~-~--~~~---~--~~
Nope, you don't. If that was the case you'd need to change your
rewrite rules every time you added a new CSS, JavaScript or Image.
If the file/directory exists in the web directory, it will get served.
It's only if the file/directory doesn't exist that the request gets
handed to Symfony.
Th
On Sun, 22 Mar 2009, rio wrote:
> I'm trying to load a .PHP file placed in "/some_folder/some_file.php"
> but when I try I get the "Oops! Page Not Found" page. The file is in
> this folder and the path is correct. I'm using shared hosting, symfony
> 1.2 and sfGuardPlugin (hope this information is
Did you place it in /web/some_folder/some_file.php?
On 23 Mar 2009, at 00:02, rio wrote:
>
> Hi guys,
> I'm trying to load a .PHP file placed in "/some_folder/some_file.php"
> but when I try I get the "Oops! Page Not Found" page. The file is in
> this folder and the path is correct. I'm using sh