# |
Apr 18th 2017, 09:34 |
aiena |
metoyoko your question is too broad to answer try rephrasing it |
# |
Apr 18th 2017, 09:33 |
aiena |
is that safe for cake is it risky from XSS point of view ? |
# |
Apr 18th 2017, 09:33 |
aiena |
dereuromark so I can just echo out the data from the database in an input tag e.g. like this http://paste.opensuse.org/f8e932cd |
# |
Apr 18th 2017, 09:29 |
dereuromark |
do not mess with it at all, @aiena. Cake will handle all that on its own. You only need h() for actual view output. |
# |
Apr 18th 2017, 09:27 |
metoyoko |
How to save data with association and many tables related |
# |
Apr 18th 2017, 09:19 |
aiena |
Hi I have a question. I am maintaining a cake 2 app. I have data coming from the databse which I want to repopulate into a text field. If I htmlspecialchars encode it I think this is (h()) function in cake 3 not sure about cake 2. Will it still post correctly as a normal string ? |
# |
Apr 18th 2017, 08:22 |
dereuromark |
you mean ajax? checkout the sandbox, it contains a lot of examples |
# |
Apr 18th 2017, 08:20 |
adityapansari |
Any link/resource in cakephp3 how can I post the data using Jquery. I already have a function for that. |
# |
Apr 18th 2017, 08:15 |
Neon1024 |
Morning all :) |
# |
Apr 18th 2017, 08:15 |
Neon1024 |
Ahh, specifically quote them, that works |
# |
Apr 18th 2017, 08:15 |
Neon1024 |
But I’m not sure why it’s quoting both field names here |
# |
Apr 18th 2017, 08:14 |
Neon1024 |
I don’t want to turn off quoting identifiers, as I need it on |
# |
Apr 18th 2017, 08:14 |
Neon1024 |
COALESCE(`display_name, name`) AS `catName` |
# |
Apr 18th 2017, 08:14 |
Neon1024 |
How can I prevent the ORM from quoting this value specifically in my query? |
# |
Apr 18th 2017, 08:01 |
slieth |
is that normal behaviour? |
# |
Apr 18th 2017, 08:01 |
slieth |
As if the server didn't care once you entered them right once |
# |
Apr 18th 2017, 08:01 |
slieth |
It kept authorizing me even if I sent false credentials |
# |
Apr 18th 2017, 08:01 |
slieth |
A last question, when I tried working with basicAuthenticate |
# |
Apr 18th 2017, 08:00 |
slieth |
yeah I've seen that, thanks a lot |
# |
Apr 18th 2017, 08:00 |
hmic |
try with basic and form auth, like the book explains |
# |
Apr 18th 2017, 08:00 |
slieth |
I mean use for example basic authenticate and if that fails use HybridAuthenticate |
# |
Apr 18th 2017, 08:00 |
hmic |
sure |
# |
Apr 18th 2017, 08:00 |
slieth |
And can I "stack" authentication plugins? |
# |
Apr 18th 2017, 08:00 |
slieth |
oh, sounds nice |
# |
Apr 18th 2017, 07:58 |
hmic |
there are ready made plugins available for both! |
# |
Apr 18th 2017, 07:58 |
hmic |
!tell slieth about awesome |
# |
Apr 18th 2017, 07:58 |
slieth |
But I have to handle facebook authentication aswell |
# |
Apr 18th 2017, 07:57 |
aiena |
oh will look into it |
# |
Apr 18th 2017, 07:57 |
slieth |
I've tried BasicAuthenticate |
# |
Apr 18th 2017, 07:57 |
slieth |
Hey guys, I'm trying to implement restful authentication for my api but I don't really know the way to go |
# |
Apr 18th 2017, 07:56 |
hmic |
I'm not sure about 2.x but there is an errorscontroller likely too, just not in your app but the cake libs dir probably, go figure! (if you copy it to your app dir you can change it, cake will pick it up, or just create a new one and extend this) |
# |
Apr 18th 2017, 07:55 |
aiena |
ok |
# |
Apr 18th 2017, 07:54 |
hmic |
check the default PagesController |
# |
Apr 18th 2017, 07:54 |
aiena |
I think so. I am wondering if I should make a separate error controller for all error pages |
# |
Apr 18th 2017, 07:54 |
hmic |
sure |
# |
Apr 18th 2017, 07:53 |
aiena |
can you have a controller without a model |
# |
Apr 18th 2017, 07:52 |
aiena |
if the original app devs did not care about conventions then there are almost no conventions (: |
# |
Apr 18th 2017, 07:50 |
aiena |
nods |
# |
Apr 18th 2017, 07:49 |
hmic |
and you get all the other good stuff too, like composer support which makes using third party libs a breeze |
# |
Apr 18th 2017, 07:49 |
aiena |
hmic, yes I know of cakes conventions I was learning cake from cake 3 though. I applied that knowledge to cake 2 seeing what changed etc. Still learning as I work on this |
# |
Apr 18th 2017, 07:49 |
hmic |
if you are starting new apps, don't base them on 2.x! especially the ORM got so much better with 3.x! |