I have a Controller that I want to use for ajax scripts to call and set session variables, get information, etc. How do I set it so that that particular controller doesn't use the default layout (specifically NO layout) so that it can send XML/JSON messages back and forth?
Zend Framework - Set No Layout for Controller
9.7k Views Asked by ashurexm At
3
There are 3 best solutions below
Related Questions in PHP
- php Variable name must change in for loop
- register_shutdown_function is not getting called
- Query returning zero rows despite entries existing
- Retrieving *number* pages by page id
- Automatically closing tags in form input?
- How to resize images with PHP PARSE SDK
- how to send email from localhost using codeigniter?
- Mariadb max Error while sending QUERY packet PID
- Multiusers login redirect different page in php
- Imaginary folder when I use "DirectoryIterator" in PHP?
- CodeIgniter + XDebug: debug only working in the main controller, index() function
- PHP script timeout when I use sleep()
- posting javascript populated form to another php page
- AJAX PHP - Reload div after submit
- PHP : How can I check Array in array?
Related Questions in ZEND-FRAMEWORK
- Fatal error: Uncaught exception 'Zend_Acl_Role_Registry_Exception' with message 'Role 'admin' not found
- Uninstalling php 5.3 in ubuntu 14.04
- zend soap server reading xml attributes
- Failed installation of zend-escaper with Composer
- Composer cannot find Git windows 8
- Can/How does one make Zend's default (or any other autoloader on the stack) ignore a class?
- Zend Framework Active Directory authentication
- Zend: 500 error instead of 404
- How to force Zend_Navigation_Page_Mvc to generate an href
- Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 3 bytes) in E:\library\Zend\Db\Adapter\Pdo\Abstract.php on line 144
- Zend Gdata - missing HeaderValue.php
- Cookies on Zend Framework 2
- Fatal error: Class 'Zend_Pdf_Color_RGB' not found app/code/core/Mage/Sales/Model/Order/Pdf/Shipment.php magento using zend library
- CORS - request made after preflight request expects 'Access-Control-Allow-Credentials' to be true
- Why is this form invalid all the time
Related Questions in ZEND-VIEW
- Zend 1 to Zend 2, was using decorators, how can i achieve the same behavior now?
- where is the basepath variable being set for the zend basePath view helper (maybe a factory)
- ZF2 return dropdown value, not id in view
- How can I output child view with dynamically generated captureTo for addChild() in controller
- ZF2: Using Zend\View to render emails
- Getting View Object from within a Zend Controller plugin
- Returning Data with a Zend Framework View Helper
- Is it a bug for Zend Framework's Zend_View?
- Zend Layout for specific Actions
- Template engine for PHP + JS but
- how to pass variable from View To Controller Action In Zend Framework
- Zend Framework 2 Service in View Helper
- How to pass parameter from View Helper (widget) to action?
- Zend view script path setup
- Pipe a Zend View into the Google Translate service?
Related Questions in ZEND-CONTROLLER
- Zend Framework 1 - Zend Caching
- Unable to access module forms in module controller
- Zend Framework: Can I set a depth for url parameters?
- unable to access zend views from controller file
- Zend Layout for specific Actions
- how to pass variable from View To Controller Action In Zend Framework
- ZendFramework - How to know which controller and which specific method is execued?
- Invalid Controller Specified Error, even though the controller is present
- Zend controller extends from two class
- How to access URL parameters in bootstrap
- ZEND Controllers -- How to call an action from a different controller
- Zend Framework - Getting access to controller and action names in resource class (inherits after Zend_Controller_Resource_ResourceAbstract)
- Zend Framework controller issue
- Is it possible to disable an action in pre-dispatch?
- ZendFramework 2 - how do you handle from controller the layout head body footers like in ZF1?
Related Questions in ZEND-LAYOUT
- Zend Framework - use a common header for different actions in a controller?
- unable to access zend views from controller file
- ZF2 how to display tweets in layout
- Why no Zend_Layout helper or codebehind? And best way to
- Zend Layout for specific Actions
- zend paginator not including CSS
- Passing variables to layout after bootstrapping layout resource
- How can I populate Zend_Layout variables with backend data?
- Zend Framework 1.11 Layout classes etc
- Zend Framework: Is there a View Helper to display View Name in Layout Class?
- Performance effect using $this -> render(); while developing a layout?
- Cannot echo headTitle in layout view
- How to switch layout files in Zend Framework?
- How do I access Layout object in Zend Framework plugin?
- How do I include header and footer with layout in Zend Framework?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Like anything to do with Zend_Framework and Zend_Application, there are multiple ways to do this, but on the last few pure Zend gigs I've done, I've seen people using the following (from an action method in you controller)
This shuts off of the layout. If you wanted to turn off your view as well, you could use
again, from an action method in the controller.