Re: JQuery autocomplete on Cakephp 3.0

2015-10-08 Thread Christian Quispe
Ahiy esta el error. Hay un problema con la función. Este tema del jquey, ajax y json es bien fácil. Fresh. Compartenos el código del controlador para ver en que has metido la pata Enviado desde Gmail para Moto G www.oxicode.io El oct. 8, 2015 2:08 AM, "Raul Magdalena Catala" escribió: > Hola C

Re: creating data in foreach loop

2015-10-08 Thread rumble
It should be without: $this->request->data['parts']['_ids'][] = $part; On Thursday, October 8, 2015 at 8:30:04 AM UTC, rumble wrote: > > I am trying to save additional data to a jointable, but there is a problem > with foreach loop, in which I create all necessary data to be passed and > save

creating data in foreach loop

2015-10-08 Thread rumble
I am trying to save additional data to a jointable, but there is a problem with foreach loop, in which I create all necessary data to be passed and saved. foreach ($this->request->data['Parts']['add_ids'] as $part) { $this->request->data['parts']['_ids'][] = $part;

Re: JQuery autocomplete on Cakephp 3.0

2015-10-08 Thread Raul Magdalena Catala
Hola Christian, tengo un archivo creado para la vista en , src/Template/Cars/index.ctp. la ruta en el script es correcta: $(document).ready(function(){ $('#autocomplete').autocomplete({ source: "/cars/index.json", }); }); finalmente te paso la pertaña network