While this solved the problem of getting a partial for me.

I experienced an additional problem.

in the partial, using url_for returns a url of    http://.\symfony/symfony/....
in dev or    http://.\symfony/... in prod environment
I need it to return the correct root url, but it is not working.

using sfContext::getInstance()->getController()->genUrl instead of
url_for returns the same.

Does anyone have a solution to this???

Please??

thanks!
K-

On Aug 18, 7:03 am, "Jonathan Wage" <[EMAIL PROTECTED]> wrote:
> sfContext::createInstance($this->configuration) in your task should do the
> trick.
>
> - Jon
>
> On Sun, Aug 17, 2008 at 6:01 PM, plonk <[EMAIL PROTECTED]> wrote:
>
> > hello
>
> > I'm trying to render a partial in a task (a batch email script).
> > I can't get it to work.
> > When I call the get_partial helper, it complains :
> > " The "default" context does not exist. "
>
> > any ideas ?
>
> --
> Jonathan Wagehttp://www.jwage.comhttp://www.centresource.com

--~--~---------~--~----~------------~-------~--~----~
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