# |
Sep 18th 2019, 12:42 |
chupa |
Hey, has anyone done anything with Croogo (Cake CMS)? I've inherited a project and I think it might be messed up. I'm trying to load the .env file and I'm running into some issues. |
# |
Sep 18th 2019, 12:10 |
conehead |
@nils Where exactly is the problem? Can't you just set `I18n::locale('en_EN');`? |
# |
Sep 18th 2019, 12:07 |
jeremy.payne |
@dereuromark found my issue,t hanks for pointing me in the correct direction ;) |
# |
Sep 18th 2019, 12:05 |
nils |
Basically, how can I change the locale before a find so it makes the find in the locale I want. The problem is that the index is being ran 2 times and the second time the locale stays the same even though I’m changing it on the fly. |
# |
Sep 18th 2019, 11:59 |
jeremy.payne |
@dereuromark defined `FULL_BASE_URL` is pointing to the correct domain |
# |
Sep 18th 2019, 11:58 |
dereuromark |
check base_url config etc. |
# |
Sep 18th 2019, 11:55 |
jeremy.payne |
I tried updating a cake 2.6 app to 2.10.19 (latest), and for some reason `$this->redirect()` now pushes to `http://localhost/` instead of the domain it was on. Googeling hasn't helped me narrow down what the issue could be, nor has reading the migration guides. Any ideas? |
# |
Sep 18th 2019, 11:55 |
alexdd55976 |
one colleague on vacation, other took the day off... 3rd colleahue will start in october 1st... |
# |
Sep 18th 2019, 11:53 |
slackebot |
with the first locale in the array. No idea why… |
# |
Sep 18th 2019, 11:53 |
nils |
I’m using Cake 2.x. I’m also using ElasticIndex to help speed up searches. My app has two languages. So when I save the product I want it to index in both languages. So I’ve simply set up an array with the two languages and running it twice so it changes the index for the second row. In the loop I’ve got setlocale(LC_ALL, $language) and Configure::write(‘Config.language’, $language) - however, the changes aren’t kicking in. It runs |
# |
Sep 18th 2019, 11:51 |
conehead |
Alex but why do you have to sit alone in an office? :) |
# |
Sep 18th 2019, 11:49 |
alexdd55976 |
we need to be the best person we can be. therefore the best community possible. other communites are a PITA (experience it right now).. we don'T wanna be like that |
# |
Sep 18th 2019, 11:48 |
conehead |
Just lets forget bout that last thing. Hope to see you more often here Elasty! |
# |
Sep 18th 2019, 11:47 |
adam282 |
Fun shit |
# |
Sep 18th 2019, 11:47 |
alexdd55976 |
wait for cake4 :) |
# |
Sep 18th 2019, 11:46 |
adam282 |
Nice. Anyways, take it easy y’all. You haven’t heard the last from me, I am sure. CakePHP 3.x is way different than CakePHP 2.x. |
# |
Sep 18th 2019, 11:46 |
alexdd55976 |
at least i got star wars movies running on my phone :) |
# |
Sep 18th 2019, 11:45 |
alexdd55976 |
now i am in a new job, sitting in a office... alone.. :thinking_face: |
# |
Sep 18th 2019, 11:45 |
alexdd55976 |
work from home is cool.. did it the last 3 years |
# |
Sep 18th 2019, 11:45 |
adam282 |
Been sitting here for 14+ hours |
# |
Sep 18th 2019, 11:44 |
adam282 |
Yup. I work a swing shift for my normal job, from home. |
# |
Sep 18th 2019, 11:44 |
alexdd55976 |
oh.. other way around the globe |
# |
Sep 18th 2019, 11:44 |
adam282 |
Phoenix, AZ USA |
# |
Sep 18th 2019, 11:44 |
alexdd55976 |
@adam282 almost 5AM.. so you sit in australia? |
# |
Sep 18th 2019, 11:43 |
adam282 |
Even then, we don’t do anything involving sensitive data so we’re good |
# |
Sep 18th 2019, 11:43 |
spriz |
most incidents could have been avoided if "you were not stupid", but humans happen |
# |
Sep 18th 2019, 11:42 |
adam282 |
True that. I have one very VERY junior developer that I am teaching that does work for me but he’s done well so far as to not let credentials out. |
# |
Sep 18th 2019, 11:42 |
spriz |
Or you're bringing in juniors :) |
# |
Sep 18th 2019, 11:42 |
adam282 |
Sure, if you’re stupid or have no idea what you’re doing. |
# |
Sep 18th 2019, 11:42 |
spriz |
it takes a few steps in the wrong direction and you have some security credentials bleeding all of the place by mistake :thinking_face: |
# |
Sep 18th 2019, 11:41 |
alexdd55976 |
great to hear that. 8) |
# |
Sep 18th 2019, 11:41 |
spriz |
Having things online while developing it sounds scary to me :,) |
# |
Sep 18th 2019, 11:40 |
adam282 |
I am not new to this. I am a DevOps Engineer and have more than 20 years in the industry, I am not some new developer |
# |
Sep 18th 2019, 11:39 |
adam282 |
Just a remote dev server. No prod. |
# |
Sep 18th 2019, 11:38 |
alexdd55976 |
ok, if this is possible... i hope its not remote AND on production server :) |
# |
Sep 18th 2019, 11:37 |
adam282 |
I don’t like developing locally. Makes it easier this way so I can show the customer or another developer the progress. I haven’t developed locally in many, many years. |
# |
Sep 18th 2019, 11:37 |
alexdd55976 |
@adam282 i would invest the time to get everythring done locally, so no surprises later on the server |
# |
Sep 18th 2019, 11:36 |
adam282 |
Now that it’s 4:35A local time and I have to be up in 8 hours for my normal job, I am heading to bed. Thanks again, I appreciate it. |
# |
Sep 18th 2019, 11:36 |
adam282 |
Anyways, I fixed my issue temporarily. I added a `session_destroy();` at the top of the routine and the same for the sign out. |
# |
Sep 18th 2019, 11:35 |
alexdd55976 |
all easy |
# |
Sep 18th 2019, 11:35 |
alexdd55976 |
relax guys |