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
- How to add the dynamic new rows from my registration form in my database?
- Issue in payment form gateway
- How to create a facet for WP gridbuilder that displays both parent and child custom fields?
- Function in anonymous Laravel Blade component
- How to change woocomerce or full wordpress currency with value from USD to AUD
- General questions about creating a custom theme Moodle CMS
- How to add logging to an abstract class in php
- error 500 on IIS FastCGI but no clue despite multiple error loggings activated
- Composer installation fails and reverts ./composer.json and ./composer.lock to original content
- How to isolate PHP apps from each other on a local machine(Windows or Linux)?
- Laravel: Using belongsToMany relationship with MongoDB
- window.location.href redirects but is causing problems on the webpage
- Key provided is shorter than 256 bits, only 64 bits provided
- Laravel's whereBetween method not working with two timestamps
- Implementing UUID as primary key in Laravel intermediate table
Related Questions in ZEND-FRAMEWORK
- How to properly quote / escape this INSERT statement in Zend 1 Framework
- Zend Barcode label distance ajustment
- cast in doctrine query builder
- Laminas $filter->getValues() in getData() of laminas-form return duplicate of array collection when using Element File
- I want to translate country name to english in using diffrent country locale Magento2?
- How to get the name of the module, controller and action in Laminas framework?
- Zend XmlRpc Client gzinflate out of memory on php 7.1
- Zend Barcode image isn't generate correctly in CodeIgniter
- How to switch between the read-only and read-write db conenctions in Laminas using DBAL
- Database transaction is not working as expected even rollback is not working
- Ajax call in Zend 1.12 return 404
- Zend Framework 1 legacy application redesign
- Zend Barcode image do not generate correcly
- How to click the button after displaying the dialog box in jquery
- Zend Session Error, Session must be started before any output has been sent to browser
Related Questions in ZEND-VIEW
- how to render an emailbody
- Zend Expressive not passing variables to view script
- How do I send variables to an error layout in ZF3?
- how to show a form in a grid view
- redirect different view scripts
- understanding grid layout in zend
- zf3 view not finding helpers
- Zend View behaviour in a Swoole http server
- Using Placeholder Viewhelper
- How to sort a view easily
- Zend Framework 3 Rendering HTML For HTML Email
- what is the difference of partial and addChild?
- nested view with child, child won't be shown
- folder for view template not found
- register View-Helper understanding issue
Related Questions in ZEND-CONTROLLER
- zend framework 3 append script from controller
- can't find route in console action zf3
- Zf3 controller not able to access the model class table located in another module
- ZF2: change view script from controller factory
- Create the controller of an upload file form in zend
- ZF2 many forms in one controller
- Action is not executed
- Zend 2 define error page for controller
- Zend Framework 1 - Zend Caching
- How does a Zend controller action have access to Form subclass for instantiation?
- Can ZF2 escapeHTML be used for get post data?
- Fatal Error, Zend Controller Response Exception
- Zend Framework Routing Get Parameters
- How to attach css and javascript files in zf2 controller?
- How i get parameter from url in zf2?
Related Questions in ZEND-LAYOUT
- rendering layout on the production server
- how to call and pass array data to layout from controller in zend 2?
- How to check for invalid route in layout view
- Render a partial view with layout in Zend Framework 1.12
- using ZEND_Layout, having different Layouts
- ZEND_Auth, deactivate navigation area
- how to create header in zf2's layout file
- How can I inject additional child view into layout, that modules can override?
- Layout per module zf2
- Override of Zend_View_Helper not being picked up in Zend_Layout
- Zend 2 challenge :How to configure Zend Framework 2 to hold generic template outside a module?
- Zf2 changing layout
- ZF2 User group specific layouts
- Placement of conditional script in head section of a layout
- Redirect to login if user inactive zend
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 # Hahtags
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.