Hi Alberto,
You need to put the collection in as an array for each item with the
id and the displayed name as below:
editor(
'edit',
'/cars/ajax_update/' . $car['Car']['id'],
array(
'update' => 'edit',
'type' => 'synchronous',
'collection' => array(
array($id
'collection' => array(array('0', 'Ferrari'), array('1',
'Lamborghini'))
Si
On Sep 19, 1:48 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm using an AJAX in-place-editor inside my project; it's the standard
> one provided by Cake and Scriptacolous; I have a problem: I have to
maybe try this:
editor('edit', '/cars/ajax_update/' . $car['Car']
['id'], array('update' => 'edit', 'type' => 'synchronous',
'collection' => array('1'=>'Ferrari', '2'=>'Lamborghini'))); ?>
where you define the keys in your collection array.
not tested but it may work for you.
On Sep 19, 9:48 am
Hi all,
I'm using an AJAX in-place-editor inside my project; it's the standard
one provided by Cake and Scriptacolous; I have a problem: I have to
use a collection of elements inside a SelectBox. Here's the code:
editor('edit', '/cars/ajax_update/' . $car['Car']
['id'], array('update' => 'edit'