# |
Dec 18th 2019, 10:06 |
neon1024 |
Then you can specify a field for the value, even an entity accessor method |
# |
Dec 18th 2019, 10:05 |
slackebot |
<neon1024> |
# |
Dec 18th 2019, 10:05 |
neon1024 |
The key bit being this example |
# |
Dec 18th 2019, 10:05 |
neon1024 |
Oh, the docs are defaulting to 4.x |
# |
Dec 18th 2019, 10:04 |
neon1024 |
https://book.cakephp.org/4/en/orm/retrieving-data-and-resultsets.html#customize-key-value-output |
# |
Dec 18th 2019, 10:03 |
neon1024 |
In that instance the list options can take both key and array value, which could be a callback |
# |
Dec 18th 2019, 10:03 |
gianmarxgagliardi |
it doesn't work and I can't find the reference syntax |
# |
Dec 18th 2019, 10:02 |
gianmarxgagliardi |
`$trainersUnmated=$this->SeasonTrainers->Trainers->find('list',['nome', 'cognome'])->notMatching('SeasonTrainers');` |
# |
Dec 18th 2019, 10:02 |
gianmarxgagliardi |
for example now I can't find a way to select two fields from a linked table. |
# |
Dec 18th 2019, 10:02 |
gianmarxgagliardi |
with the documentation I have some difficulties as to how it is set up. most likely it's my problem |
# |
Dec 18th 2019, 09:59 |
gianmarxgagliardi |
@neon1024first experience with patterns MVC. I don't find myself much with syntax and documentation. thank god this group exists. |
# |
Dec 18th 2019, 09:54 |
neon1024 |
@gianmarxgagliardi How are you getting on with CakePHP now that you’ve been using it for a while? Do you find any parts of the framework hard to understand or use? |
# |
Dec 18th 2019, 09:15 |
gianmarxgagliardi |
:persevere: |
# |
Dec 18th 2019, 09:14 |
gianmarxgagliardi |
I solved it. it was enough to change `find('list')` with `find('all')` |
# |
Dec 18th 2019, 09:04 |
neon1024 |
@kaliel I’d say to have a look at the phpleague/flysystem |
# |
Dec 18th 2019, 09:04 |
neon1024 |
Morning everyone |
# |
Dec 18th 2019, 08:58 |
kaliel |
Now that File and Folder are deprecated, what di you guys suggest for file handling ? |
# |
Dec 18th 2019, 08:53 |
gianmarxgagliardi |
how can I retrieve name or other fields from linked tables if I only have ID? is there no way to get behind all the other fields of the linked table? |
# |
Dec 18th 2019, 08:50 |
gianmarxgagliardi |
you are there ? |
# |
Dec 18th 2019, 08:43 |
gianmarxgagliardi |
there is no way to be able to hook transmit id to the "trainer" or "clubs" table maybe in the template / add.ctp? |
# |
Dec 18th 2019, 08:42 |
eax |
Actually, nevermind! I had switched some arguments! :) |
# |
Dec 18th 2019, 08:41 |
javier.villanueva |
morning all |
# |
Dec 18th 2019, 08:35 |
gianmarxgagliardi |
all the same as before |
# |
Dec 18th 2019, 08:34 |
gianmarxgagliardi |
it works |
# |
Dec 18th 2019, 08:34 |
ashish_onmobile |
and see if it works |
# |
Dec 18th 2019, 08:34 |
ashish_onmobile |
try to go your page. |
# |
Dec 18th 2019, 08:34 |
gianmarxgagliardi |
OK now ? |
# |
Dec 18th 2019, 08:33 |
slackebot |
<gianmarxgagliardi> |
# |
Dec 18th 2019, 08:32 |
gianmarxgagliardi |
I deleted everything |
# |
Dec 18th 2019, 08:32 |
ashish_onmobile |
delete all files in tmp |
# |
Dec 18th 2019, 08:32 |
gianmarxgagliardi |
ok |
# |
Dec 18th 2019, 08:31 |
gianmarxgagliardi |
? |
# |
Dec 18th 2019, 08:31 |
gianmarxgagliardi |
delete all |
# |
Dec 18th 2019, 08:30 |
gianmarxgagliardi |
ok |
# |
Dec 18th 2019, 08:30 |
ashish_onmobile |
delete all |
# |
Dec 18th 2019, 08:30 |
ashish_onmobile |
yes |
# |
Dec 18th 2019, 08:29 |
eax |
Morning folks! Cake3 question: Is it possible to set what corresponds to “CURLOPT_USERPWD” in the HTTP Client built in to cake? Doing basic authentication seems to not work :) |
# |
Dec 18th 2019, 08:28 |
slackebot |
<gianmarxgagliardi> |
# |
Dec 18th 2019, 08:27 |
ashish_onmobile |
do you see? |
# |
Dec 18th 2019, 08:27 |
gianmarxgagliardi |
ok |
# |
Dec 18th 2019, 08:27 |
ashish_onmobile |
you will see tmp folder |