# |
Jul 11th 2018, 03:02 |
chrisshick |
table-> table->table ->table XD |
# |
Jul 11th 2018, 03:02 |
chrisshick |
yeah, i thought of that too... but then it just got hairy XD |
# |
Jul 11th 2018, 03:02 |
ricksaccous |
lol |
# |
Jul 11th 2018, 03:01 |
ricksaccous |
of the other table, through another table |
# |
Jul 11th 2018, 03:01 |
ricksaccous |
you could also make another id field which maps to the table name |
# |
Jul 11th 2018, 03:01 |
chrisshick |
I thought i'd experiment with the other way for sh*tsand giggles |
# |
Jul 11th 2018, 03:00 |
chrisshick |
Same |
# |
Jul 11th 2018, 03:00 |
ricksaccous |
i always end up using the extra field heh |
# |
Jul 11th 2018, 02:59 |
chrisshick |
one seems rather dirty while the other seems table overkill |
# |
Jul 11th 2018, 02:58 |
chrisshick |
or a secondary table between each of the three to the one |
# |
Jul 11th 2018, 02:57 |
chrisshick |
The best way I could find was based on a secondary field to determine which table |
# |
Jul 11th 2018, 02:56 |
chrisshick |
I figured as much |
# |
Jul 11th 2018, 02:56 |
ricksaccous |
ah ok |
# |
Jul 11th 2018, 02:56 |
ricksaccous |
you can set up relationships based on conditions |
# |
Jul 11th 2018, 02:56 |
chrisshick |
I've been experimenting with them lately |
# |
Jul 11th 2018, 02:56 |
chrisshick |
yeah |
# |
Jul 11th 2018, 02:55 |
ricksaccous |
polymorphic relationship |
# |
Jul 11th 2018, 02:55 |
ricksaccous |
yeah |
# |
Jul 11th 2018, 02:52 |
chrisshick |
anyone work with cases where a certain record can belong to one of three different tables |
# |
Jul 10th 2018, 21:33 |
camdenbassett |
ok, I might have been mistaking the hidden input for the checkbox... oops |
# |
Jul 10th 2018, 21:33 |
saeideng |
I think input() deprecated in 3.6 |
# |
Jul 10th 2018, 21:31 |
saeideng |
control == input |
# |
Jul 10th 2018, 21:31 |
camdenbassett |
@saeideng Thanks, i foundd that if you use control() instead of input() it puts the label around the checkbox. But it's good to know you can modify the templates |
# |
Jul 10th 2018, 21:29 |
saeideng |
https://book.cakephp.org/3.0/en/views/helpers/form.html#customizing-templates |
# |
Jul 10th 2018, 21:28 |
saeideng |
you can customize output of `$this->Form->*()` template |
# |
Jul 10th 2018, 21:18 |
camdenbassett |
It does not do this if you use $this->Form->input() though |
# |
Jul 10th 2018, 21:12 |
camdenbassett |
Sorry, just was reading that this is the default behavior for control and radio |
# |
Jul 10th 2018, 21:10 |
camdenbassett |
for example <label><input type="checkbox">test</label> rather than <input type="checkbox"><label>test</label> |
# |
Jul 10th 2018, 21:07 |
camdenbassett |
Hello everyone, is there any way to make the form builder in cake put the label tag around the checkbox/radio-button instead of next to it' |
# |
Jul 10th 2018, 20:58 |
itmpls |
we'll find out.. |
# |
Jul 10th 2018, 20:58 |
itmpls |
boo! :slightly_smiling_face: |
# |
Jul 10th 2018, 20:47 |
ricksaccous |
vive le baguette |
# |
Jul 10th 2018, 20:47 |
ricksaccous |
I'm cheering for le Frenchies, but I'm not too invested since I didn't even watch the semis |
# |
Jul 10th 2018, 20:46 |
itmpls |
underdog please. croatia! |
# |
Jul 10th 2018, 20:46 |
itmpls |
i hope france loses! :P |
# |
Jul 10th 2018, 20:00 |
bravo-kernel |
It’s just like frameworks @josbeir, the best one does not always win |
# |
Jul 10th 2018, 19:55 |
saeideng |
:face_with_rolling_eyes: |
# |
Jul 10th 2018, 19:55 |
josbeir |
Just hope france wins the cup now |
# |
Jul 10th 2018, 19:55 |
josbeir |
We had a good run |
# |
Jul 10th 2018, 19:54 |
itmpls |
Noooo :( |
# |
Jul 10th 2018, 19:53 |
josbeir |
We're done. |