I think so, but if the other controller calls the `layout` helper, then you'll still see the different layout.
Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 15 September 2013 20:28, facCoder [via Zend Framework Community] < [email protected]> wrote: > Thanks for your reply... > > Basically, when I call the controller's action(method) of another module, > it rendered its layout. I want this layout to be render on current layout > as partial layout. i.e. on particular div i want to render this layout. > > Is it possible??? > > > On Sun, Sep 15, 2013 at 6:35 AM, Marco Pivetta [via Zend Framework > Community] <[hidden > email]<http://user/SendEmail.jtp?type=node&node=4660979&i=0> > > wrote: > >> Layouts are just named scripts (the names are used by the view resolver >> to find out what the path to the script is). >> >> There's two ways to achieve what you want to do: >> >> 1 - use the `layout` controller helper >> 2 - modify the view model contained in your application's MvcEvent >> (->getViewModel()) so that the template name corresponds to the layout you >> want. >> >> >> Marco Pivetta >> >> http://twitter.com/Ocramius >> >> http://ocramius.github.com/ >> >> >> On 14 September 2013 20:58, facCoder [via Zend Framework Community] <[hidden >> email] <http://user/SendEmail.jtp?type=node&node=4660972&i=0>> wrote: >> >>> I am new to zend framework 2. I want to display other module >>> contents(layout) within module. >>> >>> Means i am in abc module and x layout is rendered. On click to anchor >>> tag i want to show other module layout in abc moudule x layout. >>> >>> Similar to partial layouts. >>> >>> >>> ------------------------------ >>> If you reply to this email, your message will be added to the >>> discussion below: >>> >>> http://zend-framework-community.634137.n4.nabble.com/Display-other-module-content-within-module-in-zend-framework-2-tp4660968.html >>> To start a new topic under Zend Framework, email [hidden >>> email]<http://user/SendEmail.jtp?type=node&node=4660972&i=1> >>> To unsubscribe from Zend Framework Community, click here. >>> NAML<http://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> >>> >> >> >> >> ------------------------------ >> If you reply to this email, your message will be added to the >> discussion below: >> >> http://zend-framework-community.634137.n4.nabble.com/Display-other-module-content-within-module-in-zend-framework-2-tp4660968p4660972.html >> To unsubscribe from Display other module content within module in zend >> framework 2, click here. >> NAML<http://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> >> > > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://zend-framework-community.634137.n4.nabble.com/Display-other-module-content-within-module-in-zend-framework-2-tp4660968p4660979.html > To start a new topic under Zend Framework, email > [email protected] > To unsubscribe from Zend Framework Community, click > here<http://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=634137&code=b2NyYW1pdXNAZ21haWwuY29tfDYzNDEzN3wxNzE0OTI1MTk4> > . > NAML<http://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Display-other-module-content-within-module-in-zend-framework-2-tp4660968p4660982.html Sent from the Zend Framework mailing list archive at Nabble.com.
