I have used a component slot myself. My main layout (which is outside of any modules) has a main area and a sidebar area. The sidebar content needs to be included potentially from different modules. Thats why I wanted to share some data between the main area of the layout and the component Balaji
On Jan 21, 2008, at 7:49 AM, Kiril Angov wrote: > > Have you looked into component slots? > > http://www.symfony-project.org/book/1_0/07-Inside-the-View-Layer > > and search for slots. > > Yuretsz wrote: >> I wrote simple banner system for the site. They inclusion located in >> global layout. I made all logic in the partial but that doesn't fit >> in >> MVC. And that's haunting me :( >> >> On Jan 21, 2008 5:37 PM, Kiril Angov < [EMAIL PROTECTED] >> <mailto:[EMAIL PROTECTED]>> wrote: >> >> >> I think you can only include partials from the global templates/ >> folder >> (because they are simple include_once() statements). Components >> are >> morel like actions and they need to belong to a module. So I >> guess you >> have to use a partial. >> >> Kupo >> >> Yuretsz wrote: >>> I'm just wondering how to include component from the global >>> application layout? >>> >>> On Jan 20, 2008 5:10 AM, Ant Cunningham >> <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED] >> d.com> >>> <mailto:[EMAIL PROTECTED] >> <mailto:[EMAIL PROTECTED]>>> wrote: >>> >>> >>> On Saturday 19 January 2008 5:35:33 pm Kiril Angov wrote: >>>> - <?php include_component('module', 'sidebar', array('data', >>> $data)) ?> >>>> + <?php include_component('module', 'sidebar', >> array('data' => >>> $data)) ?> >>> >>> Thanks for that catch :-) >>> >>> >>>> >> >> >> >>> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
