# |
Mar 11th 2018, 16:21 |
bravo-kernel |
@ionas unfortunately sometimes the right decision take time to sit out the lesser one |
# |
Mar 11th 2018, 16:00 |
inoas |
wonder why we didn't stay on IRC and simply added Mattermost as an alternative... at least then the cake software foundation would have been in control of choices. |
# |
Mar 11th 2018, 15:59 |
inoas |
once it is all nice and perfectly central our contracts/jobs will be in danger too... :( |
# |
Mar 11th 2018, 15:59 |
inoas |
all part of the big trend laid out here: https://staltz.com/the-web-began-dying-in-2014-heres-how.html |
# |
Mar 11th 2018, 15:59 |
inoas |
reminds me of https://www.eff.org/deeplinks/2013/05/google-abandons-open-standards-instant-messaging |
# |
Mar 11th 2018, 15:59 |
inoas |
slack will drop the irc bot btw |
# |
Mar 11th 2018, 13:29 |
lorenzo |
associated keyword? |
# |
Mar 11th 2018, 10:26 |
ashish_onmobile |
beforeFind |
# |
Mar 11th 2018, 10:26 |
ashish_onmobile |
how to use associtated key word in |
# |
Mar 11th 2018, 10:26 |
ashish_onmobile |
is there any one who can help me in friendsofcake |
# |
Mar 11th 2018, 05:56 |
savant |
no problem |
# |
Mar 11th 2018, 05:56 |
joddit |
Guess I'll stick to the way they do it in the docs for now. Thanks again |
# |
Mar 11th 2018, 05:54 |
savant |
either way is fine |
# |
Mar 11th 2018, 05:53 |
joddit |
Think that's the more "correct" way to do it? |
# |
Mar 11th 2018, 05:52 |
savant |
from: https://book.cakephp.org/3.0/en/development/routing.html#passing-parameters-to-action |
# |
Mar 11th 2018, 05:52 |
joddit |
Yeah well I certainly knew there was something I was missing |
# |
Mar 11th 2018, 05:52 |
savant |
$routes->connect(‘/articles/:category/:slug’, [‘controller’ => ‘Articles’, ‘action’ => ‘view’])->setPass([‘category’, ‘slug’]); |
# |
Mar 11th 2018, 05:51 |
savant |
there is another way to do it too |
# |
Mar 11th 2018, 05:51 |
savant |
no problem |
# |
Mar 11th 2018, 05:51 |
joddit |
Thank you |
# |
Mar 11th 2018, 05:51 |
joddit |
Well dang, that did it |
# |
Mar 11th 2018, 05:49 |
joddit |
understood |
# |
Mar 11th 2018, 05:49 |
savant |
happens to the best of us :slightly_smiling_face: |
# |
Mar 11th 2018, 05:49 |
savant |
but otherwise, dont feel too bad about not knowing something |
# |
Mar 11th 2018, 05:48 |
savant |
lets not use the word retard |
# |
Mar 11th 2018, 05:47 |
joddit |
Just coudln't find it in the docs |
# |
Mar 11th 2018, 05:46 |
joddit |
I feel like a retard when such seemingly simple questions stump me |
# |
Mar 11th 2018, 05:46 |
joddit |
Indeed |
# |
Mar 11th 2018, 05:46 |
joddit |
Yeah I try to do everything without going outside the scope of Cake in general, only when I must lol |
# |
Mar 11th 2018, 05:46 |
ricksaccous |
it starts getting evil if you make more than a few of those |
# |
Mar 11th 2018, 05:46 |
ricksaccous |
and route them based on those but ugh |
# |
Mar 11th 2018, 05:45 |
ricksaccous |
you could even add regex rules to the params |
# |
Mar 11th 2018, 05:45 |
joddit |
Didn't mean that smiley lol |
# |
Mar 11th 2018, 05:45 |
joddit |
^^ trying now |
# |
Mar 11th 2018, 05:45 |
savant |
yes |
# |
Mar 11th 2018, 05:45 |
joddit |
And you think that will allow me to use the Html helper |
# |
Mar 11th 2018, 05:45 |
ricksaccous |
i remember doing that, haha |
# |
Mar 11th 2018, 05:45 |
ricksaccous |
yeah there you go, that's similar to cakephp2 |
# |
Mar 11th 2018, 05:45 |
joddit |
Roger that |
# |
Mar 11th 2018, 05:45 |
savant |
$routes->connect('/articles/:category/:slug', ['controller' => 'Articles', 'action' => 'view'], ['pass' => ['category', 'slug']]); |
# |
Mar 11th 2018, 05:45 |
joddit |
::ears perk up!!:: |