# |
Jul 14th 2017, 09:58 |
johnwayne |
BUt it would be nice to have.... there was already an Issue on github -> https://github.com/cakephp/cakephp/issues/1957 |
# |
Jul 14th 2017, 09:52 |
hmic |
stock paginator can't do much like that. it's not difficult to implement though |
# |
Jul 14th 2017, 09:51 |
johnwayne |
If one column is empty take another (one is always filled)... or compare 2 and sort etc... :) |
# |
Jul 14th 2017, 09:50 |
hmic |
how would you click multiple sort links at once :P |
# |
Jul 14th 2017, 09:50 |
hmic |
the paginator cannot sort on multiple columns, sure. |
# |
Jul 14th 2017, 09:49 |
johnwayne |
@hmic Thank you, I am using translation for column name... I have tried with array but I am getting error -> ARRAY TO STRING CONVERSION [CORE\SRC\VIEW\HELPER\PAGINATORHELPER.PHP, LINE 437] |
# |
Jul 14th 2017, 09:23 |
hmic |
johnwayne: i don't get what the translation should do in there, but you can ->sort([... , ...]) so sort on multiple columns |
# |
Jul 14th 2017, 09:15 |
johnwayne |
Is there solution to make ->sort('Table.columnName', __('text')) using 2 columns |
# |
Jul 14th 2017, 09:14 |
redbeard_ |
I will try that |
# |
Jul 14th 2017, 09:09 |
steinkel |
redbeard_ try switching to redis engine and checking your code is actually caching it |
# |
Jul 14th 2017, 09:08 |
redbeard_ |
thanks for responding I am going to debug a little deeper |
# |
Jul 14th 2017, 09:08 |
redbeard_ |
I am going to debug the core Cache function than to check where the file is written and if it really does it |
# |
Jul 14th 2017, 09:07 |
redbeard_ |
yeah I'm out of ideas too lol - thats why I came begging here lol - this is the very first project I have troubles with this - it almost looks like a server issue |
# |
Jul 14th 2017, 09:07 |
neon1024 |
Or maybe you’re looking in the wrong folder. Who knows. |
# |
Jul 14th 2017, 09:06 |
redbeard_ |
it returns a true when I return the Cache::write(...) - that is the very strange part |
# |
Jul 14th 2017, 09:06 |
neon1024 |
Sorry, I’m out ideas. I bet it’s something very simple though, like permissions or similar. |
# |
Jul 14th 2017, 09:06 |
neon1024 |
If the default cache cannot write to the folder, it should be throwing an error |
# |
Jul 14th 2017, 09:06 |
redbeard_ |
so the directory is writable but Cache::write(..) never gets on the server |
# |
Jul 14th 2017, 09:05 |
redbeard_ |
Yes I specify as a File engine (and a longer duration) also I tried using without the 'foobar' but that also didn't work out. The Models and Persistent dir does contain files |
# |
Jul 14th 2017, 09:04 |
neon1024 |
If you change your call to write to use the default cache configuration, is the cache file created? |
# |
Jul 14th 2017, 09:04 |
neon1024 |
Does your cache configuration specify the cache engine? |
# |
Jul 14th 2017, 09:03 |
redbeard_ |
3.3.11 |
# |
Jul 14th 2017, 09:02 |
redbeard_ |
No CakePHP 3 |
# |
Jul 14th 2017, 09:02 |
redbeard_ |
the directory is created in my tmp dir - but no cache files are written |
# |
Jul 14th 2017, 09:02 |
neon1024 |
Is this Cake 2? |
# |
Jul 14th 2017, 09:01 |
redbeard_ |
@neon1024 yes.. its like this: 'foobar' => [ 'path' => CACHE . 'foobar'] |
# |
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 |