-- SiCo007 <[EMAIL PROTECTED]> wrote
(on Saturday, 19 April 2008, 04:33 AM -0700):
> photo312 wrote:
> > I would like to return a simple string saying "yes"  or "no" based on
> > computations in a controller.  I have a controller that checks whether a
> > username is taken or not and displays the results.  
> > 
> > I need to turn off the default view rendering and show only the raw stuff
> > I echo in the controller. how do I do this?
> 
> If you're using Zend Layout this is the simplest way to disable the output,
> I believe:
> 
> // Disable the layout
> // Retrieve and ammend Zend_Layout directly
> Zend_Layout::getMvcInstance()->disableLayout();

Within your action controllers, you have access to a helper:

    $this->_helper->layout->disableLayout();

Which is slightly less verbose.

-- 
Matthew Weier O'Phinney
Software Architect       | [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/

Reply via email to