Action "foo/foobar" does not exist error in Symfony

Posted by morpheous on Stack Overflow See other posts from Stack Overflow or by morpheous
Published on 2010-06-17T11:35:23Z Indexed on 2010/06/17 11:43 UTC
Read the original article Hit count: 292

Filed under:
|

I am saving pictures under my web folder in the folder:

web/media/photo

In the template that displays the photo, I have the following snippet:

<?php echo link_to(image_tag('media/photo/filename.jpg', '@some_url); ?>

When I display the view, although the photo is displayed correctly and the link works, I get the following error in my php_errors.log file:

Action "media/photo" does not exist.

Why is symfony trying to parse the path to the image as a url?

Does anyone know how to fix this?

© Stack Overflow or respective owner

Related posts about php

Related posts about symfony