How to run multiple development cakephp projects on the same cake server?

2015-08-17 Thread Raul Magdalena Catala
How can i run multiple development cakephp projects on the same cake server and access them via http://localhost:8765 ? is this possible ? thanks in advance -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message

Re: How to run multiple development cakephp projects on the same cake server?

2015-08-18 Thread Raul Magdalena Catala
Thanks both Leandro and Mark El dilluns, 17 agost de 2015 9:40:28 UTC+2, Raul Magdalena Catala va escriure: > > How can i run multiple development cakephp projects on the same cake > server and access them via http://localhost:8765 ? > > is this possible ? > > thanks in a

Re: How to upload images on cakephp3

2015-09-02 Thread Raul Magdalena Catala
hello, create a form with an input field echo $this->Form->create($document, ['enctype' => 'multipart/form-data']); // OR echo $this->Form->create($document, ['type' => 'file']); Next add either of the two lines to your form view file: echo $this->Form->input('submittedfile', [ 'type' => 'file

how to debug on a "add" function of controller

2015-09-02 Thread Raul Magdalena Catala
hello, i've inserted a debug($this->request->data) into the add function of my controller but nothing is rendered when i've add some data code looks like: public function add() { $magazine = $this->Magazines->newEntity(); if ($this->request->is('post')) { *deb

Re: how to debug on a "add" function of controller

2015-09-03 Thread Raul Magdalena Catala
troller? > > > On Wed, Sep 2, 2015 at 11:02 AM Raul Magdalena Catala > wrote: > >> hello, >> >> i've inserted a debug($this->request->data) into the add function of my >> controller but nothing is rendered when i've add some data &

help with uploadedFile validation rule

2015-09-17 Thread Raul Magdalena Catala
hello, i can not understand how uploadedFile validation rule works, http://api.cakephp.org/3.0/class-Cake.Validation.Validation.html#_uploadedFile can someone help me with and example, expanding below code? $validator ->add('image', ['rule' => ['uploadedFile, thanks -- Like Us on Fa

Which is the right way to check if find() returns any record? cakephp 3.0

2015-10-04 Thread Raul Magdalena Catala
hello, i'm looking for the right way in cakephp 3.0 to check is a find() query returns any record. By now i'm executing the query with a $result = find()->toArray and checking if $result is empty or not, but the problem is that i can not sent $result to $this->paginate() as paginate needs an ob

Re: Which is the right way to check if find() returns any record? cakephp 3.0

2015-10-04 Thread Raul Magdalena Catala
now i can reply myself just checking the API there is a count() method for the query object :) El diumenge, 4 octubre de 2015 20:44:10 UTC+2, Raul Magdalena Catala va escriure: > > hello, > > i'm looking for the right way in cakephp 3.0 to check is a find() query > retu

JQuery autocomplete on Cakephp 3.0

2015-10-07 Thread Raul Magdalena Catala
Hello, i'm trying to use the following example of JQuery autocomplete with Cakephp http://zenofcoding.com/2013/08/27/cakephp-and-jquery-auto-complete-revisited/ The important change between versions (if i'm not wrong) is how to enable the parsing of extensions in both cases it is done in the ru

Re: JQuery autocomplete on Cakephp 3.0

2015-10-07 Thread Raul Magdalena Catala
e9603049712749436540c6015285ce9?url=http%3A%2F%2Foxicode.io&signature=b56e083071470d63>* > > *¿A quién le enseñan sus aciertos?, si yo aprendo de mis errores > constantemente...* > > > 2015-10-07 16:42 GMT-05:00 Raul Magdalena Catala >: > >> Hello, >>

Re: JQuery autocomplete on Cakephp 3.0

2015-10-08 Thread Raul Magdalena Catala
d Developer* > *Miembro: * *GDG Lima (Google Developer Group Lima)* > > *Portafolio: www.oxicode.io > <https://mailtrack.io/trace/link/8ec7b946fa3dd757dcc0aee0f3b541981f2635a3?url=http%3A%2F%2Foxicode.io&signature=1f56e26077e1b222>* > > *¿A quién le enseñan sus aciertos?, si yo aprendo de mis erro

Re: JQuery autocomplete on Cakephp 3.0

2015-10-09 Thread Raul Magdalena Catala
l 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

Re: JQuery autocomplete on Cakephp 3.0

2015-10-12 Thread Raul Magdalena Catala
; > *¿A quién le enseñan sus aciertos?, si yo aprendo de mis errores > constantemente...* > > > El 9 de octubre de 2015, 2:27 a. m., Raul Magdalena Catala< > raulma...@gmail.com > escribió: > > hola > > el código del controladores muy sencillo > &g

Re: JQuery autocomplete on Cakephp 3.0

2015-10-12 Thread Raul Magdalena Catala
XpM/s1600/Captura%2Bde%2B2015-10-12%2B22%253A27%253A28.png> ¿sabes a que se debe este comportamiento del input? He comprobado que la respuesta json esta bien formateada. gracias El divendres, 9 octubre de 2015 9:27:16 UTC+2, Raul Magdalena Catala va escriure: > > hola > > el código

Re: JQuery autocomplete on Cakephp 3.0

2015-10-13 Thread Raul Magdalena Catala
gt; <https://mailtrack.io/trace/link/121ae77715bc0eb6a3abf916d50c78dd2bca2a9a?url=http%3A%2F%2Foxicode.io&signature=93aefc105306cc5e>* > > *¿A quién le enseñan sus aciertos?, si yo aprendo de mis errores > constantemente...* > > > El 12 de octubre de 2015, 3:32 p. m.,

cakephp 3- how to style flash error messages?

2015-10-18 Thread Raul Magdalena Catala
hello, i've tried with this but no exit $this->Flash->error(__('The magazine could not be saved. Please, try again.' ,['class' => 'alert-danger'])); there is any way? thanks -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You receive

Re: cakephp 3- how to style flash error messages?

2015-10-20 Thread Raul Magdalena Catala
thats is, thanks Jose El dilluns, 19 octubre de 2015 22:32:45 UTC+2, joserafael va escriure: > > Go to src/Template/Element/Flash/error.ctp > > And edit this file. Must be like this: > > > > > El domingo, 18 de octubre de 2015, 16:27:10 (UTC-4:30), Raul Magdalena >

hasmany validation and save data in a form, best approach

2015-12-29 Thread Raul Magdalena Catala
hello, lets say that i have a form that represents an invoice and the invoice items. the invoice has many invoice items relation. the form has some inputs for the invoice, and 10 rows with inputs for the invoice items: item code, item qty, item price, etc... Not always all the 10 rows are filled

the web server returns ERR_EMPTY_RESPONSE and crash down when i try to add some data to my model

2016-01-30 Thread Raul Magdalena Catala
Hello the web server returns ERR_EMPTY_RESPONSE and them crash down when i try to add some data to my model from a form it only happens with one model, not with the other ones. do you have any idea of why this happens?? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter h