If you need to have different "content areas" in your main layout then
use slots. Thats what they were defined for ;)

http://www.symfony-project.org/book/1_0/07-Inside-the-View-Layer#chapter_07_sub_slots

On Wed, Apr 21, 2010 at 7:16 PM, Poltasi Risom <[email protected]> wrote:
> If you need to display search form on one particular page init it in
> the action. But if you want to have search form been shown through all
> site - possibly component is a good way to init form. And include it
> in the higher-level template (in the layout, for example).
> This applies the login form also
>
> On Apr 21, 7:44 pm, gopi <[email protected]> wrote:
>> hi..
>>
>> I have got two forms to be displayed on a page (both are independent
>> of each other).  Ex: user login, search
>>
>> Both the forms are the output of two different "actions"
>>
>> How do I get both the forms to be displayed on the same page?
>> Component would have been better, but as far I could gather, it is not
>> possible to display symfony forms from components
>>
>> thx
>> gopi
>>
>> --
>> If you want to report a vulnerability issue on symfony, please send it to 
>> security at symfony-project.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 
>> athttp://groups.google.com/group/symfony-users?hl=en
>
> --
> If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.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
>



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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