http://www.milesj.me/resources/script/ajax-handler-component
On Sep 27, 10:21 am, mikeottinger <[email protected]> wrote: > Excellent, works like a charm, Thanks! > > On Sep 27, 9:51 am, brian <[email protected]> wrote: > > > I believe you can do: > > > $this->autoRender = $this->layout = false; > > echo $new_order; > > exit; > > > On Sun, Sep 27, 2009 at 3:14 AM, mikeottinger <[email protected]> > > wrote: > > > > Hi All, > > > > Very simple question, I have a controller called by an ajax call that > > > will return a single number for its response. I couldn't find a way to > > > return just that value without going through the process of creating > > > an element for it and doing something like this: > > > > $this->set('value', $new_order); > > > $this->render('/elements/sort_edit_form', 'ajax'); > > > > The contents of the sort_edit_form.ctp are mind-numbingly simple: > > > > <?= $value; ?> > > > > Anyway to bypass the use of an element and simply return the value > > > straight back? Or is this how cakephp insists on doing things? > > > > Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
