|
Re: Implementation question: msg#00181php.zend.framework.mvc
Hi Jigal, You could avoid having to write a view script by adding the following to the action that updates the status (this disables the rendering of a view script through the viewRenderer action helper): $this->_helper->viewRenderer->setNoRender(true); and - if you use layouts as well (disables the layout through the layout action helper): $this->_helper->Layout->disableLayout(true); I usually name my actions something like "updateAjaxAction()" and call them with the url "/admin/update.ajax". You could also check out the ContextSwitch action-helper for (a LOT) more documentation on having your content available in multiple formats/contexts. This would save you from manually calling disableLayout(), and have your actions work either with or without being called by XmlHttpRequest calls. http://framework.zend.com/manual/en/zend.controller.actionhelpers.html#zend.controller.actionhelpers.contextswitch Kind regards, -- Ramon de la Fuente Future500 BV Graaf Janstraat 143 2713 CK ZOETERMEER tel: +31(0) 79 3164428 fax: +31(0) 84 7160626 mob: +31(0) 6 53443008 @: ramon-vxEorWptP/sMVM8bKHaD6A@xxxxxxxxxxxxxxxx w: www.future500.nl Jigal sanders wrote: Hello everyone, |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Unescaped options inside Zend_Form_Element_Select: 00181, Adam Hunter |
|---|---|
| Next by Date: | Serializing Zend_Form elements with array notation: 00181, Cristian Bichis |
| Previous by Thread: | Implementation questioni: 00181, Jigal sanders |
| Next by Thread: | Unescaped options inside Zend_Form_Element_Select: 00181, Ernesto |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |