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?
> 
> thanks 
> 

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();

Simon

-----
Simon Corless

http://www.ajb007.co.uk/
-- 
View this message in context: 
http://www.nabble.com/returning-a-string-from-a-controller-for-ajax-request-tp16771240p16782083.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to