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] <
[email protected]> 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
> [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-tp4660968p4660972.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to