# |
Jul 22nd 2017, 10:31 |
crazycoder |
ok i will use a foreach() |
# |
Jul 22nd 2017, 10:30 |
birdy247 |
It currently not happening |
# |
Jul 22nd 2017, 10:30 |
crazycoder |
can i exit a loop inside collection->each() ? |
# |
Jul 22nd 2017, 10:30 |
crazycoder |
hello |
# |
Jul 22nd 2017, 10:27 |
birdy247 |
should I expect table object to be called in the through model? |
# |
Jul 22nd 2017, 10:27 |
birdy247 |
If I am saving a belongsToMany with the "through" option |
# |
Jul 22nd 2017, 10:04 |
r3zam |
slackebot: exactly what i needed (yea , it was address of uploaded image but i didn't know how to make to start from webroot directory) |
# |
Jul 22nd 2017, 09:15 |
littleylv |
if $carCompany->logo is something like uploads/files/foo.jpg , try `$this->Html->image($carCompany->logo, ['pathPrefix' => '/']);` |
# |
Jul 22nd 2017, 09:12 |
littleylv |
what’s in `$carCompany->logo` |
# |
Jul 22nd 2017, 09:10 |
widelec-BB |
r3zam: In 3.x you have UrlHelper. |
# |
Jul 22nd 2017, 09:09 |
widelec-BB |
uch, 3.x. sorry, I somehow assumed you are using 2.x... |
# |
Jul 22nd 2017, 09:08 |
r3zam |
widelec-BB: i couldn't find assetUrl in cakephp 3.x document |
# |
Jul 22nd 2017, 09:04 |
r3zam |
widelec-BB: let me check it |
# |
Jul 22nd 2017, 09:02 |
widelec-BB |
r3zam: maybe try using HtmlHelper::assetUrl() |
# |
Jul 22nd 2017, 08:42 |
r3zam |
hey guys , i uploaded some images to webroot/uploads/files , but when i try to load them with this syntax i got 404 error (<img src="/<?=$carCompany->logo; ?>" alt="<?=$carCompany->name . '\'s Logo'; ?>) i can't use image helper too , how can i show them with relative path ? |
# |
Jul 22nd 2017, 07:49 |
birdy247 |
Morning guys |
# |
Jul 22nd 2017, 07:13 |
rchavik |
itamer: find src/Template/ -name "*.ctp" | xargs sed -i 's/Form->input/Form->control/g' :) |
# |
Jul 22nd 2017, 07:01 |
braeden |
input() is deprecated? man, that shatters my entire universe |
# |
Jul 22nd 2017, 05:55 |
admad |
you can keep using input() until 4.0 if you want :slightly_smiling_face: |
# |
Jul 22nd 2017, 05:43 |
itamer |
oh joy, just had a monster site upgraded from 1.2 to 3 and all the input calls have been left. |
# |
Jul 22nd 2017, 05:42 |
admad |
form->input() is deprecated btw, so if you are using latest 3.x use form->control() |
# |
Jul 22nd 2017, 05:41 |
itamer |
@admad thanks, I'll go look that up |
# |
Jul 22nd 2017, 05:41 |
admad |
@italopalanza hidden fields do have id attribute if you use form->control() / form->input() to create them |
# |
Jul 22nd 2017, 05:39 |
itamer |
Just upgraded to v3, hidden fields no longer appear to have an ID attribute. Do I need to create a helper to add them? |
# |
Jul 22nd 2017, 00:15 |
pgdev |
turns out I was using it right. win win :3 |
# |
Jul 22nd 2017, 00:14 |
pgdev |
thanks |
# |
Jul 22nd 2017, 00:13 |
pgdev |
lol |
# |
Jul 22nd 2017, 00:13 |
pgdev |
yeah thats it |
# |
Jul 21st 2017, 23:14 |
braeden |
oooh man I did a good job on pulling this espresso shot this morning |
# |
Jul 21st 2017, 23:14 |
braeden |
https://github.com/cakephp/cakephp/blob/master/src/ORM/Query.php#L450 |
# |
Jul 21st 2017, 23:13 |
braeden |
I don't know whether that is correct or up to date |
# |
Jul 21st 2017, 23:13 |
braeden |
"In short contain applies leftJoin and matching applies right/inner join to the query." |
# |
Jul 21st 2017, 23:12 |
braeden |
Does it have something to do with eager loading for the contain method? |
# |
Jul 21st 2017, 23:07 |
jeremyharris |
ö |
# |
Jul 21st 2017, 22:51 |
savant |
o: |
# |
Jul 21st 2017, 22:40 |
pgdev |
:o |
# |
Jul 21st 2017, 21:42 |
pgdev |
Can anyone help me understand the differences between cakephp 3.x query object's contain and matching methods? It seems like I'm able to achieve the same things with both? I'm trying to run a select, inner join, where condition on joined table, however I'm not actually selecting from the joined table. |
# |
Jul 21st 2017, 21:40 |
pgdev |
Hey everyone |
# |
Jul 21st 2017, 21:18 |
styks1987 |
well that stinks |
# |
Jul 21st 2017, 20:51 |
phantomwatson |
Nevermind, am idjit, just noticed that I need to make a `foo.inc.fixed` file to compare the `foo.inc` file to. Derf. |
# |
Jul 21st 2017, 20:40 |
slackebot |
otherwise. |