Hi. Could someone help me with this? I am noob and can't understand the events, and how to get resources.. This is my Module.php
------------------------------------------------------------------------------- <?php namespace Application; use Zend\Mvc\ModuleRouteListener; use Zend\Mvc\MvcEvent; use Zend\EventManager\EventInterface; class Module { //.. public function onBootstrap(EventInterface $event) { $app = $event->getParam('application'); $sm = $app->getServiceManager(); //$this->bootstrap('layout'); $layout = $this->getResource('layout'); $view = $layout->getView(); if( $this->getRequest()->isXmlHttpRequest() ) { $layout->setTerminal(true); } } } ------------------------------------------------------------------------------- Thank you -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Don-t-display-layout-if-ajax-request-tp4659147.html Sent from the Zend Framework mailing list archive at Nabble.com. -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives Unsubscribe: fw-general-unsubscr...@lists.zend.com