Log message #4017094

# At Username Text
# Apr 18th 2017, 10:19 sim So what about 2.x?
# Apr 18th 2017, 10:19 sim That's is so bad ....
# Apr 18th 2017, 10:19 sim I mean cache only
# Apr 18th 2017, 10:19 hmic i'd say 1.3 => 3.x is a rewrite
# Apr 18th 2017, 10:18 hmic first off: cake 3 runs on php7 which is a lot faster, the orm cake 3 uses is completely different from the one cake1.3 uses and it is faster by all means
# Apr 18th 2017, 10:18 sim I wanna upgrade cakephp from 1.3.14 to 3.4. So my question is can I gain a large performance improvement on cache and is it a very heavy work?
# Apr 18th 2017, 10:18 hmic sim: thats not the question really
# Apr 18th 2017, 10:17 hmic same holds true with saving and loading from database, if you let cake do it, it will take care, if you build queries yourself, you are up to do the right thing yourself.
# Apr 18th 2017, 10:17 hmic aiena: the correct answer is: the formhelper will take care of it all, like all things cake provides you with. if you decide to do the markup yourself and echo it, you need h(), like dereuromark said: if you output the data in a view, you need to take care of it, utilizing h(), if cake outputs it, it will take care for you
# Apr 18th 2017, 10:17 sim I wanna upgrade cakephp from 1.3.14 to 3.4. So my question is can I gain a large performance improvement on cache ?
# Apr 18th 2017, 10:16 hmic aiena: why has this app been build with cake, if it's not using *anything* cake does provide?
# Apr 18th 2017, 10:15 hmic dereuromark: he is not using the formhelper here!
# Apr 18th 2017, 09:56 aiena ah thanks
# Apr 18th 2017, 09:35 dereuromark not inside forms via formhelper
# Apr 18th 2017, 09:35 dereuromark as I said: on actual output in your templates
# Apr 18th 2017, 09:34 dereuromark you can try it with some alert() strings if you dont believe me :slightly_smiling_face:
# Apr 18th 2017, 09:34 aiena ok so when us h() actually used ?
# Apr 18th 2017, 09:34 dereuromark aiena: yes
# 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?