I would simply rewrite the image_tag helper to automatically add the
complete url. With this solution you will use your helper the exact
same way as before...provided that all your images are on your new
subdomains.

On Oct 10, 8:03 pm, Eno <[EMAIL PROTECTED]> wrote:
> On Thu, 9 Oct 2008, Sumedh wrote:
> > But now I want to use a separate domain for images
> > (images.example.com)...I'll continue to host them on same sever, but
> > just configure the DNS for a separate images subdomain...
>
> > Is there a ready made way to do this in symfony? Is image_path()
> > helper useful in this case?
>
> What we did was set a constant in config.php which we use in the
> image_tag() helper:
>
> <?php echo image_tag(IMAGEURL . 'folder/subfolder/image.gif'); ?>
>
> --
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" 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/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to