Stephane, good point.. thank you.

Now, to avoid creating a separate indexSuccess page... how can I disable the
layout?

I tried $this->setLayout(false);  but it keeps bringing up the layout.

(And i really want to avoid, having to declare each one to disable on the
view.yml )



On Thu, Feb 11, 2010 at 4:49 PM, Stéphane <stephane.er...@gmail.com> wrote:

> Hi,
>
> You do not redirect to a partial, but redirect to a url to which a route
> does match, which has a module and action to dispatch to.
>
> You can use a partial as a view (V of mvc) used by an action (C of mvc).
> So you could use in the appropriate action the $this->setTemplate($*)
>
> $*: See 'Naming Conventions' in the 'Symfony View' documentation.
>
> http://www.symfony-project.org/api/1_0/sfAction#method_settemplate
> and jobeet tutorial.
>
>
> Cheers,
>
>
> Before Printing, Think about Your Environmental Responsibility!
> Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
>
>
> On Thu, Feb 11, 2010 at 10:45 PM, Samuel Morhaim <samuel.morh...@gmail.com
> > wrote:
>
>> Hi.. working on my Ajax.. i have a question..
>> How can I do redirect to a partial?
>>
>> Option 1:
>> I turn off layout for each specific action that uses "ajax" but then i
>> endup with a method with ajax and without ajax...
>>
>> Option 2:
>> I manage to redirect to a partial so if if($request->isXmlHttpRequest())
>> is true.. then just redirect to a partial..
>>
>>
>> I want to do option 2.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "symfony users" group.
>> To post to this group, send email to symfony-us...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "symfony users" group.
> To post to this group, send email to symfony-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.

Reply via email to