# |
Apr 13th 2018, 10:12 |
tobias |
does anybody know this problem? |
# |
Apr 13th 2018, 10:12 |
tobias |
in my cake 2 project everytime i try to execute app/Console/cake test app TestEverything, TestEverything is a Suite i get the error Message, Class '' could not be found in app/Test/Case/TestEverythingTest.php |
# |
Apr 13th 2018, 10:09 |
iqu |
i have to see events as well. that might be one solution as well |
# |
Apr 13th 2018, 10:08 |
iqu |
they are dangerous even though they come with hero badge |
# |
Apr 13th 2018, 10:08 |
neon1024 |
Along with suspension of your good coder badge |
# |
Apr 13th 2018, 10:08 |
neon1024 |
Well, no, that would be `$_GLOBAL` |
# |
Apr 13th 2018, 10:06 |
iqu |
easiest global variable ever :D |
# |
Apr 13th 2018, 10:06 |
neon1024 |
LOL |
# |
Apr 13th 2018, 10:05 |
iqu |
@neon1024 @dereuromark. more general solution. json_encode whole object and then pass it whereever with assign and read it anywhere with fetch :) |
# |
Apr 13th 2018, 09:23 |
neon1024 |
@paulo.moura Could be some permissions issues with that, as the other folder might not be owned by the web server, or have write permissions. Which is why I usually use a folder in the root of the project for non web accessible file uploads |
# |
Apr 13th 2018, 09:20 |
spriz |
Ahh @dereuromark - I just found the same header with help from @jippi |
# |
Apr 13th 2018, 09:14 |
iqu |
neon1024: dereuromark: easy solution was to use assign and fetch |
# |
Apr 13th 2018, 09:13 |
paulo.moura |
Its normal to not work when you try to move and uploaded file outside the app folder? example: appfolder path: /var/www/html/ desired destination folder: /var/www/randomfolder |
# |
Apr 13th 2018, 09:08 |
paulo.moura |
@dereuromark thanks. I will take a look |
# |
Apr 13th 2018, 09:05 |
dereuromark |
using the libs available. e.g. Flysystem adapters. |
# |
Apr 13th 2018, 08:58 |
paulo.moura |
Anyone know how to save an uploaded file to a folder outside of the project? |
# |
Apr 13th 2018, 08:53 |
dereuromark |
#Heroku way RewriteCond %{HTTP:X-Forwarded-Proto} !https |
# |
Apr 13th 2018, 08:53 |
dereuromark |
LOL, someone built that in into the htaccess file in our app ;) I just saw it " force redirect to ssl" |
# |
Apr 13th 2018, 08:51 |
spriz |
Unfortunately the default Heroku things still allow access without https, but it might be a settings thing :slightly_smiling_face: Thanks @dereuromark |
# |
Apr 13th 2018, 08:50 |
iqu |
dereuromark: thanks. i got it |
# |
Apr 13th 2018, 08:50 |
neon1024 |
What @dereuromark said ;) |
# |
Apr 13th 2018, 08:50 |
spriz |
I see @dereuromark - thx. I’ll try to poke around with Heroku things then! |
# |
Apr 13th 2018, 08:49 |
iqu |
neon1024: no. not same |
# |
Apr 13th 2018, 08:49 |
neon1024 |
Is this the `->nav('carts')` thing? |
# |
Apr 13th 2018, 08:49 |
dereuromark |
and anything you need for template should go in beforeRender(), not beforeFilter() etc |
# |
Apr 13th 2018, 08:49 |
dereuromark |
iqu: you need to understand scopes. one controller => one template/view etc, appController => all |
# |
Apr 13th 2018, 08:49 |
neon1024 |
As we’ve covered that at length, talking about AppController::beforeFilter, View cells, and other approaches |
# |
Apr 13th 2018, 08:48 |
neon1024 |
Is this the same question as earlier in the week? |
# |
Apr 13th 2018, 08:48 |
iqu |
neon1024: dont really understand. i have set view variable and i can read it properly only at that controllers view. i want to read it globally at other elements as well |
# |
Apr 13th 2018, 08:48 |
dereuromark |
"SSL - Your certificate is automatically managed. Add a custom domain to your app." |
# |
Apr 13th 2018, 08:47 |
veeetle |
On the note of `SecurityComponent`, I can’t seem to reproduce a blackholing. I see a lot of them in the production logs, but I can’t seem to reproduce on localhost |
# |
Apr 13th 2018, 08:47 |
dereuromark |
it does for us afaik. |
# |
Apr 13th 2018, 08:45 |
spriz |
or does Heroku enforce the https usage? |
# |
Apr 13th 2018, 08:45 |
spriz |
so how would you get that to hit https://yoursite.com/accounts |
# |
Apr 13th 2018, 08:45 |
spriz |
I’m not sure I understand you with manual redirects - eg. if I try to access http://yoursite.com/accounts - I assume you don’t have any logic in the AccountsController |
# |
Apr 13th 2018, 08:44 |
dereuromark |
for us it just does it :slightly_smiling_face: on heroku. easy. |
# |
Apr 13th 2018, 08:43 |
dereuromark |
but nginx sure is the best bet |
# |
Apr 13th 2018, 08:43 |
dereuromark |
or manual redirects |
# |
Apr 13th 2018, 08:43 |
spriz |
darn :slightly_smiling_face: You enforce https with nginx? |
# |
Apr 13th 2018, 08:43 |
dereuromark |
the whole black list thing usually just shoots yourself in the foot. |
# |
Apr 13th 2018, 08:42 |
dereuromark |
nope |