# |
Jul 14th 2017, 09:01 |
redbeard_ |
It doesn't give errors or something it just never writes it to my server. The dir is all writeable and my config.php is using the correct config |
# |
Jul 14th 2017, 09:01 |
neon1024 |
..and you’ve configured this ‘foobar’ cache configuration? |
# |
Jul 14th 2017, 09:00 |
redbeard_ |
please someone help me out?! |
# |
Jul 14th 2017, 09:00 |
redbeard_ |
Hi all - I have a weird cache problem: site runs on a subdir (/test/) and I write a cache file using: Cache::write('test', 'helloworld', 'foobar'); in the very next line I use the Cache::read(..) to test and that works, but when I look on my server the tmp dir /tmp/cache/foobar is empty so the next time I refresh the cache is empty |
# |
Jul 14th 2017, 07:15 |
neon1024 |
Morning everyone |
# |
Jul 14th 2017, 07:01 |
uchil |
hello |
# |
Jul 14th 2017, 06:46 |
savant |
https://github.com/rlafranchi/system_tester |
# |
Jul 14th 2017, 06:36 |
savant |
interesting idea regarding filestorage in a database |
# |
Jul 14th 2017, 06:36 |
savant |
https://github.com/rails/activestorage |
# |
Jul 14th 2017, 00:46 |
siran |
d*mn i had to check field by field and see what was the mistake... isn't there an option to see the sql errors while creating a fixture? |
# |
Jul 14th 2017, 00:32 |
siran |
(sorry for that) |
# |
Jul 14th 2017, 00:32 |
siran |
hi, how can I show the sql error when a fixture could be created? I am only getting the 'Unable to insert fixtures for ... test case. SQLSTATE[25P02]: In failed sql transaction' which is not very illuminating |
# |
Jul 14th 2017, 00:26 |
siran |
hi, how can I show the sql error when a fixture could be created? I am only getting the 'Unable to insert fixtures for ... test case. SQLSTATE[25P02]: In failed sql transaction' which is not very illuminating |
# |
Jul 14th 2017, 00:03 |
graziel |
@tippexs91 ^ |
# |
Jul 14th 2017, 00:02 |
graziel |
https://api.cakephp.org/3.4/class-Cake.View.ViewBuilder.html#_setTemplate |
# |
Jul 13th 2017, 23:22 |
nicolas.r |
Personnaly I don't know sorry ^^', wait a minute, maybe someone could ans you |
# |
Jul 13th 2017, 23:21 |
tippexs91 |
´´$this->viewBuilder()->autoLayout(false);´´ works for the layout, but how can I set the view-file? |
# |
Jul 13th 2017, 23:21 |
tippexs91 |
Hi folks, how can I set the View.ctp within a controller method (cake 3.4) to a general ajax.ctp file? |
# |
Jul 13th 2017, 23:10 |
nicolas.r |
I think it wil go into the else , no ? |
# |
Jul 13th 2017, 23:10 |
nicolas.r |
if($this->model->save($value)){ echo "ok"}else{ echo "ko"} |
# |
Jul 13th 2017, 23:10 |
nicolas.r |
when you do if($this->model->save()){ echo "ok"}else{ echo "ko"} What does it do ? |
# |
Jul 13th 2017, 23:07 |
nicolas.r |
it just fails ? |
# |
Jul 13th 2017, 23:07 |
nicolas.r |
and no exception is thrown ? |
# |
Jul 13th 2017, 23:06 |
siranm |
though this is more general ` } catch (\Exception $e) { ` |
# |
Jul 13th 2017, 23:06 |
nicolas.r |
huum |
# |
Jul 13th 2017, 23:03 |
siranm |
ok, a ` } catch (\PDOException $e) { ` did it |
# |
Jul 13th 2017, 23:02 |
siranm |
try..catch block is being ignored |
# |
Jul 13th 2017, 23:01 |
siranm |
when making tests I try to make an INSERT on a table that breaks a UNIQUE CONSTRAINT. I'd like to 'catch' that as that is part of the test. But it simply breaks and the test fails... are there workarounds? |
# |
Jul 13th 2017, 23:00 |
siranm |
but I do have a problem |
# |
Jul 13th 2017, 22:59 |
siranm |
I feel so sleazy just coming here to ask questions haha |
# |
Jul 13th 2017, 22:59 |
siranm |
how's everyone around here? |
# |
Jul 13th 2017, 22:59 |
siranm |
hey |
# |
Jul 13th 2017, 22:50 |
savant |
no problem |
# |
Jul 13th 2017, 22:50 |
nicolas.r |
thx |
# |
Jul 13th 2017, 22:50 |
nicolas.r |
subquery ! thx i didnt found the "good" word |
# |
Jul 13th 2017, 22:50 |
savant |
https://book.cakephp.org/3.0/en/orm/query-builder.html |
# |
Jul 13th 2017, 22:49 |
savant |
just subqueries |
# |
Jul 13th 2017, 22:49 |
savant |
https://book.cakephp.org/3.0/en/orm/retrieving-data-and-resultsets.html#fetching-with-the-subquery-strategy |
# |
Jul 13th 2017, 22:49 |
savant |
ah |
# |
Jul 13th 2017, 22:49 |
nicolas.r |
select sql |
# |
Jul 13th 2017, 22:49 |
nicolas.r |
misunderstood |