Thank you very much!!!
You have saved the day!
Regards!
On Jun 12, 5:42 pm, "Francois Zaninotto" <[EMAIL PROTECTED]
project.com> wrote:
> If you want renderPartial() in a symfony 1.0 action, just add this method to
> your action class:
>
> protected function renderPartial($templateName, $vars = null)
> {
> sfLoader::loadHelpers('Partial');
> $vars = $vars ? $vars : $this->varHolder->getAll();
>
> return $this->renderText(get_partial($templateName, $vars));
> }
>
> If you want a renderComponent()... you get the idea.
>
> Cheers,
>
> François
>
> 2008/6/12 wallaby <[EMAIL PROTECTED]>:
>
>
>
> > Correct. I had done that.
>
> > The problem is that my controller which processes the submitted data
> > of the component at the end should return the same component so that
> > only this one, certain form is refreshed (I don't want to impact any
> > other parts of the screen).
>
> > However, I'm not able to do any forwards or redirects from a
> > controller to a component :/
>
> > I just found out that Symfony v1.1 is going to have the methods
> > renderPartial() and renderComponent() which is kind of what I need,
> > but I don't want to move to v1.1 yet.
>
> > Currently I've already created several actions with respective views
> > which together act like portlets and return their content without a
> > layout, however using the components would be much nicer I think.
>
> > Hope you guys understand where's the problem. I might be a bit
> > unclear :)
>
> > On Jun 12, 4:05 pm, "Bert-Jan" <[EMAIL PROTECTED]> wrote:
> > > You could put the include_component() in de Success template of the
> > action
> > > that handles the ajax request.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---