If you pass absoloute => true option to link_to() 3rd argument it will
output the full absolute url.

- Jon

On Tue, Oct 6, 2009 at 8:38 AM, Fabian Spillner
<[email protected]>wrote:

>
> If you create links on mail templates with link_to and the mails are
> sent by task.
>
> The absolute url is created correctly if you set the factories:
>
> all:
>  routing:
>    class: sfPatternRouting
>    param:
>     context:
>       host: mydomain.org
>
> But now all urls are generated without like frontend_dev.php if you
> are on dev environment:
>
> http://mydomain.org/xxx/xxxx instead of
> http://mydomain.org/frontend_dev.php/xxx/xxxx
>
> The workaround is:
>
> cli: # <--- only on cli environment
>  routing:
>    class: sfPatternRouting
>    param:
>     context:
>       host: mydomain.org
>
> I think, its a bug!
>
> Or is there another way to create links on email templates (I read the
> partial with get_partial and pack the content into swift mailer).
>
> Thank you!
> >
>


-- 
Jonathan H. Wage (+1 415 992 5468)
Open Source Software Developer & Evangelist
sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org

You can contact Jonathan about Doctrine, Symfony and Open-Source or for
training, consulting, application development, or business related questions
at [email protected]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" 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-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to