Re: JQuery autocomplete on Cakephp 3.0

2015-10-07 Thread Christian Quispe
Ya veo, el problema viene por la vista, tienes el archivo creado en la
vista?, si usas solo controlador debes tener

$this->set('_serialize', ['articles']);

tambien checa la ruta,  la url destino, el u0022 es un ' por ahi puede
hacer conflicto
pasame un pantallazo de la pestaña Network, el ultimo item debe ser el
request, subpestaña preview



Enviado con MailTrack


Saludos

Christian Quispe

*Geek and Developer*
*Miembro: * *GDG Lima (Google Developer Group Lima)*

*Portafolio: www.oxicode.io
*

*¿A quién le enseñan sus aciertos?, si yo aprendo de mis errores
constantemente...*


2015-10-07 17:09 GMT-05:00 Raul Magdalena Catala :

> Gracias Christian,
>
> ya he consegido, creo, que se realice la llamada cuando escribo algo en el
> input
>
>
> 
>
>
> pero siguen sin autocompletarse.
> Ahora cuando escribo la misma url (
> http://localhost:8765/cars/index.json?term=fo) directamente en el
> navegador, me responde:
>
> {
> "message": "Template file \u0022Cars\/json\/index.ctp\u0022 is missing.",
> "url": "\/cars\/index.json?term=fo",
> "code": 500
> }
>
>
>
> saludos
>
> El dimecres, 7 octubre de 2015 23:48:49 UTC+2, Christian Quispe va
> escriure:
>>
>> Hola Raul
>> Nos compares los debugs? o algún pantallazo de la consola de chromeDev
>> cuando intentas ejecutarlo
>>
>>
>>
>> Enviado con MailTrack
>> 
>>
>> Saludos
>>
>> Christian Quispe
>>
>> *Geek and Developer*
>> *Miembro: * *GDG Lima (Google Developer Group Lima)*
>>
>> *Portafolio: www.oxicode.io
>> *
>>
>> *¿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,
>>> 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 ruotes.php file
>>> in 2.3 by Router::parseExtensions()
>>> in 3.0 by Router::extensions('json')
>>>
>>> anyway, when i write into the input, nothing happens
>>> i've checked with the browser debugging tool and no call to
>>> http://localhost:8765/cars/index.json occurs.
>>> even if i write the url http://localhost:8765/cars/index.json?term=fo
>>> in the browser, i do not receive a json response, in fact no response or
>>> error message
>>>
>>> any idea about what i'm doing wrong?
>>>
>>> --
>>> Like Us on FaceBook https://www.facebook.com/CakePHP
>>> Find us on Twitter http://twitter.com/CakePHP
>>>
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "CakePHP" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to cake-php+u...@googlegroups.com.
>>> To post to this group, send email to cake...@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/cake-php.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cake-php+unsubscr...@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: JQuery autocomplete on Cakephp 3.0

2015-10-07 Thread Raul Magdalena Catala
Gracias Christian,

ya he consegido, creo, que se realice la llamada cuando escribo algo en el 
input




pero siguen sin autocompletarse.
Ahora cuando escribo la misma url 
(http://localhost:8765/cars/index.json?term=fo) directamente en el 
navegador, me responde:

{
"message": "Template file \u0022Cars\/json\/index.ctp\u0022 is missing.",
"url": "\/cars\/index.json?term=fo",
"code": 500
}



saludos

El dimecres, 7 octubre de 2015 23:48:49 UTC+2, Christian Quispe va escriure:
>
> Hola Raul
> Nos compares los debugs? o algún pantallazo de la consola de chromeDev 
> cuando intentas ejecutarlo
>
>
>
> Enviado con MailTrack 
> 
>
> Saludos
>
> Christian Quispe
>
> *Geek and Developer*
> *Miembro: * *GDG Lima (Google Developer Group Lima)*
>
> *Portafolio: www.oxicode.io 
> *
>
> *¿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,
>> 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 ruotes.php file
>> in 2.3 by Router::parseExtensions()
>> in 3.0 by Router::extensions('json')
>>
>> anyway, when i write into the input, nothing happens
>> i've checked with the browser debugging tool and no call to 
>> http://localhost:8765/cars/index.json occurs.
>> even if i write the url http://localhost:8765/cars/index.json?term=fo in 
>> the browser, i do not receive a json response, in fact no response or error 
>> message
>>
>> any idea about what i'm doing wrong?
>>
>> -- 
>> Like Us on FaceBook https://www.facebook.com/CakePHP
>> Find us on Twitter http://twitter.com/CakePHP
>>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "CakePHP" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to cake-php+u...@googlegroups.com .
>> To post to this group, send email to cake...@googlegroups.com 
>> .
>> Visit this group at http://groups.google.com/group/cake-php.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: JQuery autocomplete on Cakephp 3.0

2015-10-07 Thread Christian Quispe
Hola Raul
Nos compares los debugs? o algún pantallazo de la consola de chromeDev
cuando intentas ejecutarlo



Enviado con MailTrack


Saludos

Christian Quispe

*Geek and Developer*
*Miembro: * *GDG Lima (Google Developer Group Lima)*

*Portafolio: www.oxicode.io
*

*¿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,
> 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 ruotes.php file
> in 2.3 by Router::parseExtensions()
> in 3.0 by Router::extensions('json')
>
> anyway, when i write into the input, nothing happens
> i've checked with the browser debugging tool and no call to
> http://localhost:8765/cars/index.json occurs.
> even if i write the url http://localhost:8765/cars/index.json?term=fo in
> the browser, i do not receive a json response, in fact no response or error
> message
>
> any idea about what i'm doing wrong?
>
> --
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cake-php+unsubscr...@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


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 ruotes.php file
in 2.3 by Router::parseExtensions()
in 3.0 by Router::extensions('json')

anyway, when i write into the input, nothing happens
i've checked with the browser debugging tool and no call to 
http://localhost:8765/cars/index.json occurs.
even if i write the url http://localhost:8765/cars/index.json?term=fo in 
the browser, i do not receive a json response, in fact no response or error 
message

any idea about what i'm doing wrong?

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: Cake3, rss helper and cdata

2015-10-07 Thread euromark
I think the Rss helper should not be used for rss anymore, its a little bit 
outdated approach and has some flaws.
Check the Feed plugin repo and its RssView class ( 
https://github.com/dereuromark/cakephp-feed ) as well as
http://www.dereuromark.de/2013/10/03/rss-feeds-in-cakephp/

Mark


Am Dienstag, 6. Oktober 2015 11:36:23 UTC+2 schrieb lorenzoshake:
>
> How to display cdata with rss helper ?
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: CakePHP 3 Auth with two tables (models)

2015-10-07 Thread John Andersen
Make both your admins and applicants users, ie. in the users table.
Use an additional table to keep information about users (applicants).

Assign roles to your users, to indicate whether they are admins or 
applications. This can be done by having the role defined as a field in the 
users table or in another roles table, in case you in the future will have 
other kind of users.

Having one table with users, you may later be able to implement some ACL 
features. See the CakePHP book for that.

Hope this helps you on the way, enjoy,
John

On Wednesday, 7 October 2015 05:31:25 UTC+3, Hagler wrote:
>
> I have two tables in my database, one for admins (named users) and the 
> other one for normal users, (named applicants). Both tables use email and 
> password for authentication, but applicants' table has more fields, that's 
> why I need the separation.
>
> What I want to do, is create two login pages, one for admins and the other 
> for normal user. After logging in, the user is redirected to the page he is 
> supposed to see. But yet, if the user tries attempt a forbidden location. I 
> want be able to stop him (beforeFilter + isAuthorized).
>
>
> I’m a beginner in Cakephp in general. How can I make all this work ?
>
>
> Your help would be much appreciated.
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: MultiSelect not showing existing values

2015-10-07 Thread phpMagpie
If you create your form fields correctly, the form helper will sort all of 
this for you 

echo $this->Form->select(
'Model.field',
$options,
array('multiple' => true)
);

Source: http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html

I would focus on trying to get the conventions working rather forcing the 
selected options.  If you have your data array correct then the above will 
output a multiselect form field with the right options selected.

HTH, Paul.

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


asset routing not working on shared host

2015-10-07 Thread phpMagpie
Hi,

I've developed a CakePHP/Croogo site for a client who wants to contnue 
using their own host (easily.co.uk).

When I've uploaded the site to their server none of the assets are being 
found because the rewrites are failing.

I'm pretty certain mod_rewrite is enabled as /webroot/index.php runs when 
accessing the domain root.

Any ideas what I/the host needs to change to get CakePHP's standard asset 
routing working?

Thanks, Paul.

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.