I've got the exact same problem,
The following two lines solved my issue, sort of, although im looking for a cleaner solution if anyone has come across one. $action = sfContext::getInstance()->getActionStack()->getLastEntry()->getActionInstanc e(); $fbml = $action->getPresentationFor('user', 'profile'); The issue I think with the code above is that it requires you to br rendering a view which I don't always do (for example I have a cron job running), and as far as I understand it does this mean that I wont have access to the action class, maybe someone else knows more about this, any help would be appreciated Thanks, Mat From: Colin Williams [mailto:[EMAIL PROTECTED] Sent: 01 August 2007 20:54 To: symfony-users@googlegroups.com Subject: [symfony-users] Re: render a view into a variable? Hi Colin, What you're looking for is the getPresentationFor() method. You can find the API docs for it here: http://www.symfony-project.com/api/symfony/action/sfComponent.html#method_ge tpresentationfor I've never used it myself, so I can't really help beyond this. --Colin On 8/1/07, hutchic <[EMAIL PROTECTED]> wrote: I'm creating the lost password action for my user module. I need the lost password view to render into a variable. Any advice on how this can be done would be greatly appreciated. - Colin -- "Doh!" - Homer Simpson --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---