# |
Jan 17th 2019, 21:24 |
jhall |
thanks |
# |
Jan 17th 2019, 21:24 |
jhall |
ok I may check it out |
# |
Jan 17th 2019, 21:24 |
ricksaccous |
yeah |
# |
Jan 17th 2019, 21:24 |
ricksaccous |
haha |
# |
Jan 17th 2019, 21:24 |
jhall |
oh oh you said you never used it |
# |
Jan 17th 2019, 21:24 |
ricksaccous |
I don't know I haven't used it, it might be the way to go |
# |
Jan 17th 2019, 21:23 |
jhall |
oh why shouldn't I use beforeRedirect? |
# |
Jan 17th 2019, 21:23 |
ricksaccous |
depending on the situation* |
# |
Jan 17th 2019, 21:23 |
ricksaccous |
be wary that depending on referer might not be the best way because what if they get to that page because they logged in again and it autoredirected them back to where they were |
# |
Jan 17th 2019, 21:22 |
ricksaccous |
you can use session, put it in a get request (some string representing where you want to go), never actually used beforeRedirect |
# |
Jan 17th 2019, 21:19 |
jhall |
what's the best way to handle a case where I can get to an edit page from two separate controllers and depending where I came from (referer) that's where I want to return. Do I use before redirect? |
# |
Jan 17th 2019, 21:19 |
rightscoreanalysis |
yeah that is what I thought but when I do find path and find children I get singletons |
# |
Jan 17th 2019, 21:16 |
ricksaccous |
but i'd imagine a parent should be able to have many children |
# |
Jan 17th 2019, 21:16 |
ricksaccous |
i haven't used the plugin that much |
# |
Jan 17th 2019, 21:16 |
ricksaccous |
isn't that the whole point? |
# |
Jan 17th 2019, 21:16 |
rightscoreanalysis |
any know know if for the 'tree' threaded models can I have nodes with the same parent_id? |
# |
Jan 17th 2019, 21:10 |
ricksaccous |
oh well |
# |
Jan 17th 2019, 21:10 |
ricksaccous |
that isn't available in collections either :( |
# |
Jan 17th 2019, 21:09 |
rightscoreanalysis |
thanks |
# |
Jan 17th 2019, 20:47 |
ricksaccous |
@rightscoreanalysis there doesn't appear to be any such option, might have to just go to using the native php way of doing it |
# |
Jan 17th 2019, 20:44 |
rightscoreanalysis |
can I specify a second index to sort on should parent_id by the same for two indexes? |
# |
Jan 17th 2019, 20:43 |
rightscoreanalysis |
Hash::sort($thread, '{n}.parent_id', 'desc'); |
# |
Jan 17th 2019, 20:43 |
rightscoreanalysis |
I'm using this to sort an array |
# |
Jan 17th 2019, 20:41 |
ricksaccous |
no problem ;) |
# |
Jan 17th 2019, 20:41 |
drouard.noelie |
I have a friends how takes care of it, I just need to be sure, thanks :P |
# |
Jan 17th 2019, 20:40 |
ricksaccous |
yeah, you should read up on how to set up nginx in general, and where you can find the files that govern it's configuration |
# |
Jan 17th 2019, 20:39 |
drouard.noelie |
er English isn't my native language, just to confirm, we need to create something on the server? etc/nginx ... |
# |
Jan 17th 2019, 20:38 |
ricksaccous |
no problem man ;) hope you can get it working |
# |
Jan 17th 2019, 20:38 |
drouard.noelie |
wowowow Yeah I just found it, II was reading the wring page sorry! |
# |
Jan 17th 2019, 20:36 |
ricksaccous |
@drouard.noelie there is a section on it in the cakephp book, have you read it? |
# |
Jan 17th 2019, 20:35 |
drouard.noelie |
I think that's the problem |
# |
Jan 17th 2019, 20:35 |
drouard.noelie |
hello! I have an nginx server, how do i rewrite Urls? I have an error 500 |
# |
Jan 17th 2019, 19:30 |
joopm |
basically www-data has only access to webroot folder |
# |
Jan 17th 2019, 19:30 |
joopm |
i am stuck with create a config file in config folder |
# |
Jan 17th 2019, 19:29 |
joopm |
hello |
# |
Jan 17th 2019, 19:24 |
pekka_slack |
When making HTTPS requests using the Http Client of CakePHP, what is the underlying system that it uses? Is it OpenSSL? |
# |
Jan 17th 2019, 17:10 |
jhall |
okay have a great evening |
# |
Jan 17th 2019, 17:10 |
neon1024 |
Cool, good luck. That’s end of work for me, so I’m off home. |
# |
Jan 17th 2019, 17:10 |
jhall |
thank you |
# |
Jan 17th 2019, 17:10 |
jhall |
ok |
# |
Jan 17th 2019, 17:09 |
neon1024 |
This one :point_right: https://book.cakephp.org/3.0/en/plugins.html#old-style-plugins |