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
>
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
;
>
> // 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
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
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