# |
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. |
# |
Jul 21st 2017, 20:40 |
phantomwatson |
I'm working on making a sniff in cakephp/cakephp-codesniffer auto-fixable with phpcbf and I'm encountering something puzzling. When I run phpcbf, it works and correctly fixes the formatting errors it's supposed to. But when I run phpunit on the package, it fails, saying it "failed to fix fixable violations". It _might_ be a matter of other fixes defined outside of cakephp-codesniffer interfering, but I'm not sure how to confirm that or |
# |
Jul 21st 2017, 19:35 |
wp4nuv |
nvm, I was able to figure it out.. thanks for your positive thoughts! |
# |
Jul 21st 2017, 19:16 |
wp4nuv |
I'm supposed to parse between a guid url parameter or a named action... something like budget/:guid or budget/enter_values |
# |
Jul 21st 2017, 19:15 |
wp4nuv |
Hello all.. This is probably super dumb, but I'm having issues with Routing.. and frankly the named routes section doesn't make much sense to me.. |
# |
Jul 21st 2017, 18:41 |
ericadeefox |
^^thanks!! |
# |
Jul 21st 2017, 18:39 |
genellern |
You can set your connection with --connection test, but it's not required unless you have something that's not in your fixtures |
# |
Jul 21st 2017, 18:38 |
dereuromark |
most dont, because they use fixtures which auto create everything all the time |
# |
Jul 21st 2017, 18:37 |
ericadeefox |
can't tell if this is a dumb question or not: how to run a migration on a testing database? |
# |
Jul 21st 2017, 18:24 |
savant |
no problem |
# |
Jul 21st 2017, 18:21 |
swimboy |
s the sound of my head hitting the wall. Thank you @savant |
# |
Jul 21st 2017, 18:21 |
swimboy |
BANG! BANG! BANG! That |