Re: Form returned by ajax response

2008-10-17 Thread nightfallvt
Doh! Putting the form tag inside the table instead of wrapping it is a no no. On Oct 7, 9:39 am, nightfallvt <[EMAIL PROTECTED]> wrote: > My index tables have aformbelow the heading to allow users to filter > data. When using ajax pagination theformdisappears after the first >

Form returned by ajax response

2008-10-07 Thread nightfallvt
My index tables have a form below the heading to allow users to filter data. When using ajax pagination the form disappears after the first request. Normal pagination works fine. The form does show up in the html returned by ajax but it almost seems as if its getting rendered off the screen. I hav

Re: Model arrays

2008-10-02 Thread nightfallvt
; > >           // If only one is returned >           $manufacturer = $this->Manufacturer->read(null, $id) >           $this->set('manufacturers', array($manufacturer)); // Wrap > the single item in an array >      } >      // ... >      ?> > > View cod

Re: Model arrays

2008-10-02 Thread nightfallvt
That did the trick: $manufacturers = Set::extract('{n}Vendor/Manufacturer', $vendor); echo View::element('../manufacturers/ table',array('manufacturers'=>$manufacturers)); -Ken On Oct 1, 10:10 pm, Joel Perras <[EMAIL PROTECTED]> wrote: > > Just need to get the Manufacturers

Model arrays

2008-10-01 Thread nightfallvt
For all of my models I created a table.ctp that can be used as an element in any view that needs to show a table for that model. I'm trying to use the same element to display the table data in related models as well. Is there any way to reformat the array for a related model to match the format r