# |
Jul 6th 2017, 14:23 |
admad |
Check my GH account for tree plugin |
# |
Jul 6th 2017, 14:22 |
chris-andre |
Allright, interesting @dereuromark , Thanks :slightly_smiling_face: |
# |
Jul 6th 2017, 14:22 |
chris-andre |
@jeremyharris Ill check out recursive function |
# |
Jul 6th 2017, 14:22 |
dereuromark |
See http://www.dereuromark.de/2013/02/17/cakephp-and-tree-structures/#treehelper |
# |
Jul 6th 2017, 14:21 |
admad |
Just Not in core ;) |
# |
Jul 6th 2017, 14:21 |
chris-andre |
Yea, sure, I use the TreeBehavior. |
# |
Jul 6th 2017, 14:21 |
neon1024 |
Ah, no, it doesn’t. |
# |
Jul 6th 2017, 14:20 |
neon1024 |
I’m pretty certain it has a helper |
# |
Jul 6th 2017, 14:20 |
neon1024 |
I’d use the Tree behaviour |
# |
Jul 6th 2017, 14:17 |
jeremyharris |
@chris-andre probably a recursive function, unless you know the nesting depth |
# |
Jul 6th 2017, 14:09 |
chris-andre |
Hi. I have an resultset/array with tasks which might have children, child might have children and so on (multidimensional). Now I want each task listed in a table with children and childs children etc... Any tips how to "loop" through that data? |
# |
Jul 6th 2017, 14:09 |
eBug |
hi, i'm trying to build $conditions for a find so that the resulting sql query would looks something like 'WHERE (colA,colB,colC) in ((a,b,c),(d,e,f),(g,h,i)). My problem ATM is that Cake quotes the elements of the array I'm passing, like '... IN ('a,b,c','d,e,f'','g,h,i')' |
# |
Jul 6th 2017, 14:03 |
inoas |
https://gist.github.com/ionas/94e961bf414c78362442041081dad3ca ... @ burzum |
# |
Jul 6th 2017, 14:01 |
neon1024 |
Yes |
# |
Jul 6th 2017, 13:56 |
obinoob |
Hi, I have a form text field that must be obligatory in case a checkbox is ticked I wonder how can I validate such? I Suppose I need to add some custom rule and return boolean based on checkbox value right? |
# |
Jul 6th 2017, 13:48 |
Wodan__ |
Alright, thank you for all your help |
# |
Jul 6th 2017, 13:48 |
dakota |
Yes, `composer update` (Assuming your composer.json version contraints allow you to), then have a quick look through https://book.cakephp.org/3.0/en/appendices/3-4-migration-guide.html |
# |
Jul 6th 2017, 13:47 |
Wodan__ |
I did a composer update earlier |
# |
Jul 6th 2017, 13:47 |
Wodan__ |
^ Is there a fail safe way to update? |
# |
Jul 6th 2017, 13:47 |
dakota |
Ah, then use ->config( |
# |
Jul 6th 2017, 13:47 |
Wodan__ |
running 3.3.16 |
# |
Jul 6th 2017, 13:46 |
dakota |
And yes, that’s what you need to be using |
# |
Jul 6th 2017, 13:46 |
dakota |
What version of cakephp are you using? |
# |
Jul 6th 2017, 13:46 |
dakota |
It does if you are using cakephp 3.4 |
# |
Jul 6th 2017, 13:45 |
Wodan__ |
$this->Security->setConfig('unlockedActions', [...]); Does not exist |
# |
Jul 6th 2017, 13:45 |
Wodan__ |
Scratch that, the document method |
# |
Jul 6th 2017, 13:39 |
Wodan__ |
How would this work when I make a call to a specific action from a different controller to a URL? |
# |
Jul 6th 2017, 13:39 |
Wodan__ |
https://book.cakephp.org/3.0/en/controllers/components/security.html#disabling-security-component-for-specific-actions |
# |
Jul 6th 2017, 13:39 |
adriencs |
hey, do the Shell can handle a script interruption such as `CTRL-C` ?!?!? |
# |
Jul 6th 2017, 13:39 |
Wodan__ |
Thank you for your help @dakota |
# |
Jul 6th 2017, 13:36 |
Wodan__ |
Hmm... |
# |
Jul 6th 2017, 13:35 |
dakota |
Wodan__, disable security component for ajax requests (There is a “unlocked” method). Security component aims to prevent form tampering, if you are building a post body in javascript, then things become a little bit tricky |
# |
Jul 6th 2017, 13:31 |
jeremyharris |
Thanks @genellern :beers: a lot of people help more often then I, I've just been around recently :) |
# |
Jul 6th 2017, 13:31 |
Wodan__ |
So you suggest disabling it for AJAX requests? |
# |
Jul 6th 2017, 13:30 |
cleptric |
We should add HeyTaco :) |
# |
Jul 6th 2017, 13:30 |
cleptric |
You can say: “Thanky you @jeremyharris” :slightly_smiling_face: |
# |
Jul 6th 2017, 13:29 |
genellern |
Is there any way to give kudos here? I want to thank @jeremyharris for his continued help to others |
# |
Jul 6th 2017, 13:17 |
cakephp693 |
how to hide errors eventually generated from $this->Model->query(SQL) |
# |
Jul 6th 2017, 13:16 |
cakephp693 |
hi |
# |
Jul 6th 2017, 13:14 |
jarard01 |
thanks yes I found the issue, db and username in wrong place! |
# |
Jul 6th 2017, 13:14 |
rudy1976s |
@jarard01 it seems DB connection lost |